Here you can find the source of assertClassDoesNotExist(String className)
public static void assertClassDoesNotExist(String className)
//package com.java2s; // This software is released under the Apache License 2.0. public class Main { public static void assertClassDoesNotExist(String className) { try {/*from www . j a va 2 s .co m*/ Class.forName(className); throw new AssertionError("Expected a class to not exists, but it did: " + className); } catch (ClassNotFoundException e) { // OK } } }