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();
assertThat(params.size(), is(2));
assertThat(params.get(0).getType().toString(), is("Source<String>"));
assertThat(params.get(0).getName().getToken(), is("in"));
assertThat(params.get(1).getType().toString(), is("int"));
assertThat(params.get(1).getName().getToken(), is("param"));