### Question:
Classes { public static boolean isPresent(String className) { try { Class.forName(className); return true; } catch (ClassNotFoundException | NoClassDefFoundError e) { return false; } } private  Classes(); static T instanciate(Class<? extends T> clazz); static boolean isPresent(String className); static Class<?> forName(String className); static T getValueFromProtectedField(Object object, String fieldName);  }### Answer:
@Test void isPresent_returns_true_when_class_is_on_classpath() { assertThat(Classes.isPresent("java.lang.String")).isTrue(); }
@Test void isPresent_returns_false_when_class_is_not_on_classpath() { assertThat(Classes.isPresent("missing.Someclass")).isFalse(); }