* @throws Exception if failed
*/
@Test
public void compare() throws Exception {
Mock a = new Mock(plain("left"), spec(NATURAL), plain("right"), spec(DATE, "yyyy"));
a.setMock("", "0", "", new DateOption(new Date(2012, 1, 2)));
Mock b = new Mock(plain("left"), spec(NATURAL), plain("right"), spec(DATE, "yyyy"));
b.setMock("", "1", "", new DateOption(new Date(2012, 1, 2)));
Mock c = new Mock(plain("left"), spec(NATURAL), plain("right"), spec(DATE, "yyyy"));
c.setMock("", "1", "", new DateOption(new Date(2013, 1, 2)));
Mock d = new Mock(plain("left"), spec(NATURAL), plain("right"), spec(DATE, "yyyy"));
d.setMock("LLLLLLLLLLLLLL", "0", "RRRRRRRRRRRRRR", new DateOption(new Date(2012, 2, 3)));
assertThat(cmp(a, b), is(not(0)));
assertThat(cmp(b, c), is(not(0)));
assertThat(cmp(a, d), is(equalTo(0)));
}