ActorInterfaceDescriptionImpl implements ActorInterfaceDescription { @NotNull @Override public Iterable<? extends ActorInterfaceDescription.Method> methods() { return mMethods; } ActorInterfaceDescriptionImpl(@NotNull Element element); @Override boolean validate(); @Override void describeProblems(@NotNull List<GenerationError> errors); @NotNull @Override Iterable<? extends ActorInterfaceDescription.Method> methods(); @NotNull @Override TypeElement getType();  }
@Test public void methods_same_simpleActor() { TypeElement element = getTypeElement(SimpleActor.class); ActorInterfaceDescriptionImpl description = new ActorInterfaceDescriptionImpl(element); ActorInterfaceDescription.Method[] methods = Iterables.toArray(description.methods(), ActorInterfaceDescription.Method.class); Assert.assertEquals(2, methods.length); validateMethod(getMethod(element, "save"), null, methods[0]); validateMethod(getMethod(element, "get"), getTypeElement(String.class).asType(), methods[1]); }