@Test
public void returnsAnEmptySetIfNoThreadsAreDeadlocked() throws Exception {

    when(threads.findDeadlockedThreads()).thenReturn(null);
    assertThat(detector.getDeadlockedThreads())
            .isEmpty();
}