### Question:
Utils { public static boolean isClassLoaded(String className) { try { Class.forName(className); return true; } catch (ClassNotFoundException e) { return false; } } private  Utils(); static Pattern safePatternCompile(String pattern); static boolean isClassLoaded(String className); static void logAndSendMessage(CommandSender sender, String message); static void logAndSendWarning(CommandSender sender, String message); static boolean isCollectionEmpty(Collection<?> coll); static boolean isEmailEmpty(String email); static final long MILLIS_PER_MINUTE; static final long MILLIS_PER_HOUR; }### Answer:
@Test public void shouldCheckIfClassIsLoaded() { assertThat(Utils.isClassLoaded("org.bukkit.event.player.PlayerFishEvent"), equalTo(true)); assertThat(Utils.isClassLoaded("com.someclass.doesnot.exist"), equalTo(false)); }