@Test
public void testDecodeUrl() {

	String path = "/app/version/img.jpg";
	Map.Entry<String,String> entry = IconUtils.decodeIconUrl( path );
	Assert.assertEquals( "app", entry.getKey());
	Assert.assertEquals( "version", entry.getValue());
	path = "app/version/img.jpg";
	entry = IconUtils.decodeIconUrl( path );
	Assert.assertEquals( "app", entry.getKey());
	Assert.assertEquals( "version", entry.getValue());
	path = "app/version/oops/";
	entry = IconUtils.decodeIconUrl( path );
	Assert.assertEquals( "app", entry.getKey());
	Assert.assertEquals( "version", entry.getValue());
	path = "/app/version/oops/";
	entry = IconUtils.decodeIconUrl( path );
	Assert.assertEquals( "app", entry.getKey());
	Assert.assertEquals( "version", entry.getValue());
	path = "app/version/oops.jpg/whatever";
	entry = IconUtils.decodeIconUrl( path );
	Assert.assertNull( entry.getKey());
	Assert.assertNull( entry.getValue());
}