### Question:
OpenSessionOptionBuilder { public OpenSessionOptionBuilder setOpenSessionOnly(final boolean openSessionOnly) { this.openSessionOnly = openSessionOnly; return this; }  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 setOpenSessionOnly() { final OpenSessionOption option = builder .setOpenSessionOnly(true) .setRegisterObjectEvent(false) .setRegisterPropertyEvent(false) .setRegisterStateEvent(false) .setCameraRef(cameraRef) .build(); Assertions.assertTrue(option.isOpenSessionOnly()); Assertions.assertTrue(option.getCameraRef().isPresent()); Assertions.assertFalse(option.getCamera().isPresent()); Assertions.assertFalse(option.isRegisterObjectEvent()); Assertions.assertFalse(option.isRegisterPropertyEvent()); Assertions.assertFalse(option.isRegisterStateEvent()); }