### Question:
Reflection { public static String resolveClassName(String name) { try { Class.forName(name); return name; } catch (ClassNotFoundException ex) { } String longName = null; for (String knownClass : Config.getList(Config.CLASS_LIST_KEY, true)) { if (knownClass.endsWith("." + name)) { if (longName != null) { throw new IllegalArgumentException(String.format( "Ambiguous short class name supplied: '%s'. Matched: [%s, %s].", name, longName, knownClass)); } longName = knownClass; } } return longName; } private  Reflection(); static String resolveClassName(String name); static Object newObject(String name); static Object newObject(Class<?> classObject);  }### Answer:
@Test public void testResolveClassNameBase() { assertEquals("org.linqs.psl.util.Reflection", Reflection.resolveClassName("Reflection")); assertEquals("org.linqs.psl.util.Reflection", Reflection.resolveClassName("org.linqs.psl.util.Reflection")); assertNull("org.linqs.psl.util.Reflection", Reflection.resolveClassName("eflection")); assertNull("org.linqs.psl.util.Reflection", Reflection.resolveClassName("abs")); assertEquals("org.linqs.psl.reasoner.admm.ADMMReasoner", Reflection.resolveClassName("ADMMReasoner")); }