@Test
public void testLoadJsonMappings() throws JsonParseException, JsonMappingException, IOException
{

	InputStream stream = this.getClass().getClassLoader().getResourceAsStream("pentaho-transparent-authentication-mappings.json");
	assertNotNull(stream);
	
	InMemoryUsernameProvider provider = new InMemoryUsernameProvider();
	provider.loadJsonMappings(stream);
	
	String pentahoUser = provider.getUsername("showcase", "user0.3");
	assertNotNull(pentahoUser);
	assertEquals("tiffany", pentahoUser);
}