ResourceImageLibrary extends AbstractImageLibrary { @Override public int getImagesCount() { return allFiles.size(); } ResourceImageLibrary(String resourceDirectory);  ResourceImageLibrary(String resourceDirectory, ImageLibrary defaultImageLibrary); @Override int getImagesCount();  }
@Test void shouldGetTheCorrectCountOfFiles() { ResourceImageLibrary resourceImageLibrary = new ResourceImageLibrary("data/common"); assert resourceImageLibrary.getImagesCount() == 2; }