* @throws Exception
*/
@Test
public void compareForCollection() throws Exception {
InMemoryDescCriterion c = new InMemoryDescCriterion(meta.myIntegerList);
Hoge hoge = new Hoge();
hoge.setMyIntegerList(new ArrayList<Integer>());
Hoge hoge2 = new Hoge();
hoge2.setMyIntegerList(new ArrayList<Integer>());
assertThat(c.compare(hoge, hoge2), is(0));
hoge.getMyIntegerList().add(1);
assertThat(c.compare(hoge, hoge2), is(-1));
assertThat(c.compare(hoge2, hoge), is(1));
hoge2.getMyIntegerList().add(2);
assertThat(c.compare(hoge, hoge2), is(1));
assertThat(c.compare(hoge2, hoge), is(-1));
}