### Question:
DeleteComplexMeasurement { public ActionPossibility measurementExists(UUID uuid) { boolean possible = complexMeasurementService.getDetails(uuid) != null; String reason = "Complex measurement does not exist: " +uuid; return new ActionPossibility(possible, reason, HttpStatus.NOT_FOUND); }  void delete(UUID uuid, ApplicationUser user); ActionPossibility canDelete(UUID uuid, ApplicationUser user); ActionPossibility measurementExists(UUID uuid);  }### Answer:
@Test public void testMeasurementExists() { UUID uuid = UUID.fromString("0cb419a8-aa9b-41ba-ad33-4869eaa658ff"); ActionPossibility ap = uut.measurementExists(uuid); assertFalse(ap.isPossible()); ap = uut.measurementExists(complexMeasurement.getId()); assertTrue(ap.getReason(), ap.isPossible()); }