public void testAdd() {
		RunArray<Font> runArray = new RunArray<Font>();

		// First add fontC for characters 200-259
		assertEquals(0, runArray.addRun(200, 60, fontC));
		// Verify font
		for (int i = 200; i < 260; i++) {
			assertEquals(fontC, runArray.atRun(i));
		}

		// Add fontA for characters 0-99
		assertEquals(0, runArray.addRun(0, 100, fontA));
		// Verify font
		for (int i = 0; i < 100; i++) {
			assertEquals(fontA, runArray.atRun(i));
		}
		for (int i = 200; i < 260; i++) {
			assertEquals(fontC, runArray.atRun(i));
		}

		// Add fontB for characters 50-249. It should be after fontA
		assertEquals(1, runArray.addRun(50, 200, fontB));
		// Verify font, 0-49 is fontA, 50-249 is fontB, 250-259 is fontC
		for (int i = 0; i < 50; i++) {
			assertEquals(fontA, runArray.atRun(i));
		}
		for (int i = 50; i < 250; i++) {
			assertEquals(fontB, runArray.atRun(i));
		}
		for (int i = 250; i < 260; i++) {
			assertEquals(fontC, runArray.atRun(i));
		}
	}