SizesDelegator extends BaseDelegator implements ISizesDelegator { @Override public List<IFileSize> getFileSizes( final List<IFileSpec> fileSpecs, final GetFileSizesOptions opts) throws P4JavaException { List<Map<String, Object>> resultMaps = execMapCmdList( SIZES, processParameters(opts, fileSpecs, server), null); return buildNonNullObjectListFromCommandResultMaps( resultMaps, new Function<Map<String, Object>, IFileSize>() { @Override public IFileSize apply(Map<String, Object> map) { return new FileSize(map); } } ); } SizesDelegator(IOptionsServer server); @Override List<IFileSize> getFileSizes(
            final List<IFileSpec> fileSpecs,
            final GetFileSizesOptions opts);  }
@Test public void shouldReturnNonEmptyFileSizes() throws Exception { List<IFileSize> fileSizes = sizesDelegator.getFileSizes(fileSpecs, opts); assertThat(fileSizes.size(), is(1)); assertThat(fileSizes.get(0).getDepotFile(), is(TEST_FILE_DEPOT_PATH)); }