ClassNameResolver { public static Class<?> typeForName(String className) { Objects.requireNonNull(className); try { return typeForNameWithExceptions(className); } catch (ClassNotFoundException e) { throw new LmRuntimeException("Class not found: " + className, e); } }  static Class<?> typeForName(String className);  }
@Test public void testTypeForName() throws ClassNotFoundException { assertSame(String.class, ClassNameResolver.typeForName("java.lang.String")); assertSame(Integer.class, ClassNameResolver.typeForName("java.lang.Integer")); assertSame(byte[].class, ClassNameResolver.typeForName("byte[]")); assertSame(Integer.TYPE, ClassNameResolver.typeForName("int")); }