@Test
public void readFilterTest() throws IOException, XmlPullParserException {

    File filterFile = new File(getTestResourcesDirectory() + File.separatorChar + "filter.xml");
    Filter filter = FilterFile.getFilter(filterFile);
    Repositories repositories = filter.getRepositories();
    assertEquals(repositories.getRepository().size(), 1);
    Repository repository = repositories.getRepository().get(0);
    assertEquals(repository.getId(), "default");
    assertEquals(repository.getFilenames().getIncludes().size(), 1);
    assertEquals(repository.getFilenames().getExcludes().size(), 0);
    assertEquals(repository.getPaths().getIncludes().size(), 1);
    assertEquals(repository.getPaths().getExcludes().size(), 0);
    assertEquals(repository.getProperties().getIncludes().size(), 1);
    assertEquals(repository.getProperties().getExcludes().size(), 0);
}