@Test (expected = ClassGenerationException.class)
public void checkInvalidArgumentExceptionOnTestWithUndefinedInterface()
        throws Exception {

    ClassGenerator classGenerator = new ClassGenerator(null);
    String testSample = "package info.smart_tools.smartactors.utility_tool.test_class;\n" +
            "import info.smart_tools.smartactors.utility_tool.class_generator_with_java_compile_api.TestInterface;\n" +
            "public class TestClass implements TestInterfaceUndefined {\n" +
            "    private int a;\n" +
            "    public Integer getA() {\n" +
            "        return a;\n" +
            "    }\n" +
            "}\n";
    classGenerator.generate(testSample);
    fail();
}