* 単純なテスト。
*/
@Test
public void simple() {
add("com.example.Simple");
TypeDeclaration tree = generate(new MockOperatorProcessor());
assertThat(tree.getName().getToken(), is("SimpleFactory"));
assertThat(Find.modifiers(tree), hasItem(PUBLIC));
assertThat(Find.modifiers(tree), not(hasItem(ABSTRACT)));
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>"));