### Question:
CreateComplexMeasurement { public ActionPossibility baseMeasurementExists(ComplexMeasurement complexMeasurement) { UUID uuid = complexMeasurement.getBaseMeasurementId(); boolean possible = measurementService.getDetails(uuid) != null; String reason = "Base measurement does not exist: " + uuid; return new ActionPossibility(possible, reason, HttpStatus.NOT_FOUND); }  Measurement create(ComplexMeasurement measurement, ApplicationUser user); ActionPossibility canCreate(ApplicationUser user); ActionPossibility baseMeasurementExists(ComplexMeasurement complexMeasurement);  }### Answer:
@Test public void testBaseMeasurementExists() { user = new ApplicationUser("TestUser"); complexMeasurement = new ComplexMeasurement(null, UUID.randomUUID(), "move_avg", Arrays.asList( new ComplexMeasurementParam("interval", 15), new ComplexMeasurementParam("time_window", 20)), user); ActionPossibility pos = uut.baseMeasurementExists(complexMeasurement); Assert.assertNotNull(pos); Assert.assertFalse(pos.isPossible()); }