	@Test
	public void testWriteHeaderBuffer() {

		ByteBuffer headerBuffer = ByteBuffer.allocate(MapFileWriter.HEADER_BUFFER_SIZE);
		int headerLength = MapFileWriter.writeHeaderBuffer(this.configuration, this.dataProcessor, headerBuffer);

		// expected header length
		// 20 + 4 + 4 + 8 + 8 + 16 + 2
		// + 9 ("Mercator")
		// + 1 + 8 + 1
		// + 3 ("de")
		// + 17 ("i love mapsforge")
		// + 5("test")
		// + 2 + 19 ("amenity=university")
		// + 2 + 14 + 18 ("natural=beach", natural=coastline")
		// + 1
		// + 3 * (3 + 8 + 8)
		// == 219
		Assert.assertEquals(219, headerLength);
	}