ActorInterfaceDescriptionImpl implements ActorInterfaceDescription { @NotNull @Override public TypeElement getType() { assert mElement != null; return mElement; } 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 getType_same_simpleActor() { TypeElement element = getTypeElement(SimpleActor.class); ActorInterfaceDescriptionImpl description = new ActorInterfaceDescriptionImpl(element); Assert.assertSame(element, description.getType()); }