Piece blank = Piece.pieceForNumber(0);
Piece one = Piece.pieceForNumber(1);
Piece otherOne = Piece.pieceForNumber(1);
Piece two = Piece.pieceForNumber(2);
Location locOfBlank = Location.locationFor(3,3, 4);
Location otherLocOfBlank = Location.locationFor(3, 3, 4);
Location locOfOne = Location.locationFor(0,0, 4);
Location locOfTwo = Location.locationFor(1,0, 4);
Assert.assertThat(locOfBlank, is(otherLocOfBlank));
Assert.assertThat(locOfBlank, is(not(locOfOne)));
Assert.assertThat(locOfBlank, is(not(locOfTwo)));
Assert.assertThat(locOfOne, is(locOfOne));
Assert.assertThat(locOfTwo, is(locOfTwo));
Assert.assertThat(locOfTwo, is(not(locOfOne)));
Assert.assertTrue(locOfBlank.compareTo(locOfBlank) == 0);
Assert.assertTrue(locOfOne.compareTo(locOfOne) == 0);
Assert.assertTrue(locOfTwo.compareTo(locOfTwo) == 0);
Assert.assertTrue(locOfBlank.compareTo(locOfOne) > 0);
Assert.assertTrue(locOfBlank.compareTo(locOfTwo) > 0);
Assert.assertTrue(locOfOne.compareTo(locOfBlank) < 0);
Assert.assertTrue(locOfTwo.compareTo(locOfBlank) < 0);
Assert.assertTrue(locOfTwo.compareTo(locOfOne) > 0);
Assert.assertTrue(locOfOne.compareTo(locOfTwo) < 0);
}