@Test
public void testGetLastUpdated_successful() {

    val timeInSecs = 60;
    List<DetectorMapping> mockDetectorMappings = mockDetectorMappingsList();
    when(detectorMappingRepo.findLastUpdated(timeInSecs)).thenReturn(mockDetectorMappings);
    List<DetectorMapping> detectorMappings = controllerUnderTest.findDetectorMapping(timeInSecs);
    assertNotNull("Response can't be null", detectorMappings);
    assertEquals(1, detectorMappings.size());
    assertEquals(UUID.fromString(detectorUuid), detectorMappings.get(0).getDetector().getUuid());
    assertEquals(id, detectorMappings.get(0).getId());
}