@Test
public void dirFactoryValidDirectory() {

    when(directory.isDirectory()).thenReturn(Boolean.TRUE);
    FileOrDirectoryTaskOutput instance = FileOrDirectoryTaskOutput.directory(directory);
    assertNotNull(instance);
}