@Test
public void testNewSingleStatement() throws MediaWikiApiErrorException, IOException {

	String guid = "8372EF7A-B72C-7DE2-98D0-DFB4-8EC8392AC28E";
	WikibaseDataEditor wde = new WikibaseDataEditor(this.con,
			Datamodel.SITE_WIKIDATA, new MockGuidGenerator(guid));
	ItemIdValue id = Datamodel.makeWikidataItemIdValue("Q1234");
	Statement s1 = StatementBuilder.forSubjectAndProperty(id, P31)
			.withValue(Q5).build();
	Statement s2 = StatementBuilder.forSubjectAndProperty(id, P31)
			.withValue(Q5).withId("Q1234$"+guid).build();
	ItemDocument itemDocument = ItemDocumentBuilder.forItemId(id)
			.withRevisionId(1234)
			.build();
	ItemDocument expectedDocument = ItemDocumentBuilder.forItemId(id)
			.withStatement(s2)
			.withRevisionId(1235)
			.build();
	
	String statementJson = JsonSerializer.getJsonString(s2);
	Map<String, String> params = new HashMap<>();
	params.put("action", "wbsetclaim");
	params.put("summary", "Adding a claim");
	params.put("tags", "statement-creation");
	params.put("token", "42307b93c79b0cb558d2dfb4c3c92e0955e06041+\\");
	params.put("format", "json");
	params.put("baserevid", "1234");
	params.put("maxlag", "5");
	params.put("claim", statementJson);
	String expectedResult = "{\"pageinfo\":{\"lastrevid\":1235},\"success\":1,\"claim\":"+statementJson+"}";
	con.setWebResource(params, expectedResult);
	ItemDocument editedDocument = wde.updateTermsStatements(itemDocument, Collections.<MonolingualTextValue>emptyList(),
			Collections.<MonolingualTextValue>emptyList(), Collections.<MonolingualTextValue>emptyList(),
			Collections.<MonolingualTextValue>emptyList(), Collections.singletonList(s1),
			Collections.<Statement>emptyList(), "Adding a claim", Collections.singletonList("statement-creation"));
	assertEquals(expectedDocument, editedDocument);
}