### Question:
CloudFoundryOperationsUtils { protected Mono<CloudFoundryOperations> getOperations(Map<String, String> properties) { return Mono.defer(() -> { if (!CollectionUtils.isEmpty(properties) && properties.containsKey( DeploymentProperties.TARGET_PROPERTY_KEY)) { return getOperationsForSpace(properties.get(DeploymentProperties.TARGET_PROPERTY_KEY)); } return Mono.just(this.operations); }); } CloudFoundryOperationsUtils(CloudFoundryOperations operations);   }### Answer:
@Test void getOperationsWithEmptyProperties() { StepVerifier.create(operationsUtils.getOperations(Collections.emptyMap())) .expectNext(operations) .verifyComplete(); }
@Test void getOperationsWithProperties() { StepVerifier.create(operationsUtils .getOperations(Collections.singletonMap(DeploymentProperties.TARGET_PROPERTY_KEY, "foo-space1"))) .assertNext(ops -> { String space = (String) ReflectionTestUtils.getField(ops, "space"); assertThat(space).isEqualTo("foo-space1"); }) .verifyComplete(); }