@Test
public void resourceToInstance() throws IllegalArgumentException, SecurityException, InstantiationException,
		IllegalAccessException, InvocationTargetException, NoSuchMethodException {

	Object o = Common.toInstance("a", Resource.class);
	Assert.assertEquals(new Resource("a"), o);
	Assert.assertNotEquals(new Resource("b"), o);
}