@Test
public void testLanguageFilterForMediaInfo() {

	Set<String> languageFilter = new HashSet<>();
	languageFilter.add("de");
	languageFilter.add("he");
	DocumentDataFilter documentDataFilter = new DocumentDataFilter();
	documentDataFilter.setLanguageFilter(languageFilter);
	DatamodelFilter filter = new DatamodelFilter(new DataObjectFactoryImpl(), documentDataFilter);
	MediaInfoDocument mediaInfoDocument = Datamodel.makeMediaInfoDocument(
			Datamodel.makeWikimediaCommonsMediaInfoIdValue("M42"),
			Arrays.asList(
					Datamodel.makeMonolingualTextValue("Label de", "de"),
					Datamodel.makeMonolingualTextValue("Label en", "en"),
					Datamodel.makeMonolingualTextValue("Label he", "he")
			),
			Collections.emptyList()
	);
	MediaInfoDocument mediaInfoDocumentFiltered = Datamodel.makeMediaInfoDocument(
			Datamodel.makeWikimediaCommonsMediaInfoIdValue("M42"),
			Arrays.asList(
					Datamodel.makeMonolingualTextValue("Label de", "de"),
					Datamodel.makeMonolingualTextValue("Label he", "he")
			),
			Collections.emptyList()
	);
	assertEquals(mediaInfoDocumentFiltered, filter.filter(mediaInfoDocument));
}