@Test
public void getListOfChildren_valid_children() {

    final File[] children = new File[5];
    final File mockFile = Mockito.mock(File.class);
    Mockito.when(mockFile.exists()).thenReturn(true);
    Mockito.when(mockFile.isDirectory()).thenReturn(true);
    Mockito.when(mockFile.listFiles()).thenReturn(children);
    final File[] result = cut.getListOfChildren(mockFile);
    Assert.assertSame(children, result);
}