@Test
public void testResourceRetriever() throws RetrieverException, IOException {

    final String imageResource = "parser-input/masks/green.png";
    BufferedImage retrievedImage = resourceRetriever.retrieve(imageResource, new Properties());
    BufferedImage loadedImage = ImageIO.read(this.getClass().getClassLoader().getResourceAsStream(imageResource));
    ConfigurationCompiler configurationCompiler = new ConfigurationCompiler();
    ImageComparator imageComparator = new DefaultImageComparator();
    ComparisonResult comparisonResult = imageComparator.compare(retrievedImage, loadedImage,
        configurationCompiler.getPerception(), new HashSet<Mask>());
    Assert.assertTrue(comparisonResult.isEqualsImages());
}