TypeDeclaration type = Find.type(tree, "Example");
assertThat(type.getModelKind(), is(ModelKind.CLASS_DECLARATION));
assertThat(Find.modifiers(type), hasItem(PUBLIC));
FieldDeclaration field = Find.field(type, "out");
assertThat(Find.modifiers(field), hasItems(PUBLIC, FINAL));
assertThat(field.getType().toString(), is("Source<CharSequence>"));
MethodDeclaration method = Find.method(tree, "example");
assertThat(Find.modifiers(method), hasItem(PUBLIC));
assertThat(method.getReturnType().toString(), is("SimpleFactory.Example"));
List<? extends FormalParameterDeclaration> params = method.getFormalParameters();