@Test
public final void testProcessNodeWithNoUser() {

	Node node = new Node(new CommonEntityData(1234, 2, timestamp, OsmUser.NONE, 0), 20.12345678, -21.98765432);
	node.getTags().add(new Tag("nodekey", "nodevalue"));
	testNodeWriter.process(node);
	try {
		testBufferedWriter.flush();
	} catch (IOException e) {
		e.printStackTrace();
		fail("IOException");
	}
	String nodeOpeningNoUserMatch = "^\\s*<node\\s*"
		+ "id=['\"]1234['\"]\\s*"
        + "version=['\"]2['\"]\\s*"
		+ "timestamp=['\"]2013-10-07T10:24:31Z?['\"]\\s*"
        + "lat=['\"]20.1234568['\"]\\s*"
        + "lon=['\"]-21.9876543['\"]\\s*"
        + ">\\s*";
	String[] strArray = testWriter.toString().split("\\n", 3);
	assertTrue("Node opening element does not match.", strArray[0].matches(nodeOpeningNoUserMatch));
	assertTrue("Node tag does not match.", strArray[1].matches(nodeTagMatch));
	assertTrue("Node closing element does not match.", strArray[2].matches(nodeClosingMatch));
}