@Test
public void testSingleBrokenStatement() {

	StatementGroup sg1 = Datamodel.makeStatementGroup(Collections
			.singletonList(getBrokenStatement()));
	StatementGroup sg2 = getTestStatementGroup(2,
			5, 1, EntityIdValue.ET_ITEM);
	List<StatementGroup> brokenSgs = new ArrayList<>();
	brokenSgs.add(sg1);
	brokenSgs.add(sg2);
	List<StatementGroup> fixedSgs = new ArrayList<>();
	fixedSgs.add(sg2);
	ItemDocument brokenId = Datamodel.makeItemDocument(
			getTestItemIdValue(2),
			Collections.emptyList(),
			Collections.emptyList(),
			Collections.emptyList(), brokenSgs,
			Collections.emptyMap());
	ItemDocument fixedId = Datamodel.makeItemDocument(
			getTestItemIdValue(2),
			Collections.emptyList(),
			Collections.emptyList(),
			Collections.emptyList(), fixedSgs,
			Collections.emptyMap());
	DatamodelConverter dmc = new DatamodelConverter(
			new DataObjectFactoryImpl());
	assertEquals(fixedId, dmc.copy(brokenId));
}