@Test
public void testBuildUrlCornerCases() {

	try {
		new SimpleTmsUrlBuilder(null);
		Assert.fail();
	} catch (IllegalStateException e) {
		// As expected...
	}
	try {
		TileUrlBuilder builder = new SimpleTmsUrlBuilder("." + EXTENSION);
		builder.buildUrl(null, "");
		Assert.fail();
	} catch (NullPointerException e) {
		// As expected...
	}
	try {
		TileUrlBuilder builder = new SimpleTmsUrlBuilder("." + EXTENSION);
		builder.buildUrl(new TileCode(), null);
		Assert.fail();
	} catch (NullPointerException e) {
		// As expected...
	}
}