public void acceptForEnum() throws Exception {
InMemoryGreaterThanCriterion c =
new InMemoryGreaterThanCriterion(
meta.myEnum,
SortDirection.ASCENDING);
Hoge hoge = new Hoge();
assertThat(c.accept(hoge), is(false));
hoge.setMyEnum(SortDirection.DESCENDING);
assertThat(c.accept(hoge), is(true));
hoge.setMyEnum(SortDirection.ASCENDING);
assertThat(c.accept(hoge), is(false));
}