@Test
public void generate_validPackageLevel_withProxies() {

    ActorsPackageGenerated generated = new ActorsPackageGenerated(mDescription);
    List<ActorInterfaceGenerated> proxies = new ArrayList<>();
    proxies.add(createProxy("com.truecaller.androidactors", "TestProxy"));
    JavaFile file = generated.generate(proxies);
    Assert.assertEquals(PACKAGE_NAME, file.packageName);
    verifyClass(file.typeSpec, false);
    ClassName self = ClassName.get(file.packageName, file.typeSpec.name);
    TypeSpec cls = file.typeSpec;
    verifyErrorHandlerField(cls.fieldSpecs);
    verifyProxyFactoryField(cls.fieldSpecs);
    verifyErrorHandlerSetter(self, cls.methodSpecs);
    verifyProxyFactorySetter(self, cls.methodSpecs);
    verifyBuildMethod(cls.methodSpecs);
    verifyProxyFactoryClass(cls.typeSpecs);
}