@Test
public void generate_validMethods_SimpleActor() {

    setTypeElement(SimpleActor.class);
    List<Method> methods = new ArrayList<>();
    methods.add(method("save",
            argument("key", TypeKind.LONG), argument("value", String.class.getCanonicalName(), true)));
    methods.add(method("get", String.class.getCanonicalName(),
            argument("key", TypeKind.LONG)));
    Mockito.doReturn(methods).when(mDescription).methods();
    ActorInterfaceGeneratedImpl generated = new ActorInterfaceGeneratedImpl(mDescription);
    JavaFile file = generated.generate(mNamesProvider);
    validateSaveMethod(file.typeSpec.methodSpecs);
    validateGetMethod(file.typeSpec.methodSpecs);
}