@Test(expected = DetectorException.class)
public void testUpdatedDetectorLastUsed_detector_exception() throws IOException {

    val bodyMap_cantPost = buildDetectorMappingByUuidBody(DETECTOR_UUID);
    when(objectMapper.writeValueAsString(bodyMap_cantPost)).thenReturn(bodyMap_cantPost.toString());
    when(httpClient.post(UPDATE_DETECTOR_LAST_USED_URI, bodyMap_cantPost.toString())).thenThrow(new IOException());
    clientUnderTest.updatedDetectorLastUsed(DETECTOR_UUID);
}