@Test
public void testGetValue() {

	Map<String, String> urlPatterns = _createURLPatterns();
	URLPatternMapper<String> urlPatternMapper = createURLPatternMapper(
		_createValues(urlPatterns));
	for (Map.Entry<String, String> entry : urlPatterns.entrySet()) {
		String value = urlPatternMapper.getValue(entry.getKey());
		try {
			if (Objects.isNull(value)) {
				Assert.assertEquals("", entry.getValue());
				continue;
			}
			Assert.assertEquals(entry.getValue(), value);
		}
		catch (ComparisonFailure comparisonFailure) {
			throw new ComparisonFailure(
				"When testing " + entry.getKey() + ":",
				comparisonFailure.getExpected(),
				comparisonFailure.getActual());
		}
	}
	urlPatternMapper = createURLPatternMapper(
		new HashMap() {
			{
				put("*.jsp", "*.jsp");
			}
		});
	Assert.assertEquals("*.jsp", urlPatternMapper.getValue(".jsp"));
	Assert.assertNull(urlPatternMapper.getValue("jsp"));
	Assert.assertNull(urlPatternMapper.getValue(null));
}