Request (String suiteName, Class<?>[] classes) { try { return (Request)Class.forName("org.junit.internal.requests.ClassesRequest") .getConstructor(new Class[]{String.class, Class[].class}) .newInstance(new Object[]{suiteName, classes}); } catch (Exception e) { e.printStackTrace(); return null; } }