@Test
public final void testProcessNormalWay() {

	Way way =
		new Way(new CommonEntityData(1234, 2, timestamp, new OsmUser(23, "someuser"), 0));
	way.getWayNodes().add(new WayNode(1235));
	way.getWayNodes().add(new WayNode(1236));
	way.getTags().add(new Tag("waykey", "wayvalue"));
	
	testWayWriter.process(way);
	try {
		testBufferedWriter.flush();
	} catch (IOException e) {
		e.printStackTrace();
		fail("IOException");
	}
	String[] strArray = testWriter.toString().split("\\n", 5);
	assertTrue("Way opening element does not match.", strArray[0].matches(wayOpeningMatch));
	assertTrue("Way node 1 does not match.", strArray[1].matches(wayNode1Match));
	assertTrue("Way node 2 does not match.", strArray[2].matches(wayNode2Match));
	assertTrue("Way tag does not match.", strArray[3].matches(wayTagMatch));
	assertTrue("Way closing element does not match.", strArray[4].matches(wayClosingMatch));
}