### Question:
OpenSessionOptionBuilder { public OpenSessionOption build() { validate(); return new OpenSessionOption(openSessionOnly, cameraRef, camera, cameraByIndex, cameraBySerialNumber, registerObjectEvent, registerPropertyEvent, registerStateEvent); }  OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly); OpenSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef); OpenSessionOptionBuilder setCamera(final CanonCamera camera); OpenSessionOptionBuilder setCameraByIndex(final Integer cameraByIndex); OpenSessionOptionBuilder setCameraBySerialNumber(final String cameraBySerialNumber); OpenSessionOptionBuilder setRegisterObjectEvent(final boolean registerObjectEvent); OpenSessionOptionBuilder setRegisterPropertyEvent(final boolean registerPropertyEvent); OpenSessionOptionBuilder setRegisterStateEvent(final boolean registerStateEvent); OpenSessionOption build();  }### Answer:
@Test void buildOkNoChanges() { builder.build(); }
@Test void defaultValuesAreUnChanged() { final OpenSessionOption option = builder.build(); Assertions.assertFalse(option.isOpenSessionOnly()); Assertions.assertTrue(option.isRegisterStateEvent()); Assertions.assertTrue(option.isRegisterPropertyEvent()); Assertions.assertTrue(option.isRegisterObjectEvent()); Assertions.assertFalse(option.getCamera().isPresent()); Assertions.assertFalse(option.getCameraRef().isPresent()); Assertions.assertTrue(option.getCameraByIndex().isPresent()); Assertions.assertFalse(option.getCameraBySerialNumber().isPresent()); }