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

	WikibaseDataEditor wde = new WikibaseDataEditor(this.con,
			Datamodel.SITE_WIKIDATA);
	wde.disableEditing();
	assertEquals(0, wde.getRemainingEdits());
	ItemDocument itemDocument = ItemDocumentBuilder.forItemId(
			ItemIdValue.NULL).build();
	ItemDocument result = wde
			.createItemDocument(itemDocument, "My summary", null);
	assertNull(result);
	assertEquals(0, wde.getRemainingEdits());
}