FileStatus fstat2 = mock(FileStatus.class);
when(fstat2.getPath()).thenReturn(new Path("path2"));
fs.setGlobStatus("path1", new FileStatus[]{fstat1});
fs.setGlobStatus("path2", new FileStatus[]{fstat2});
assertEquals(Result.PASS, exec.apply(item));
verify(out).println("TestCommand.processPath:path1");
verify(out).println("TestCommand.processPath:"+item.toString());
verify(out).println("TestCommand.processPath:path2");
verifyNoMoreInteractions(out);
verifyNoMoreInteractions(err);