import example.PojoWithOptional

def optional = new PojoWithOptional()

optional.optionalDouble = OptionalDouble.of(1.2)
optional.optionalInt = OptionalInt.of(1)
optional.optionalLong = OptionalLong.of(1L)

[optional, new PojoWithOptional()]