@Test
public void testAdapt() {

	Assert.assertEquals(
		ModelAdapterUtil.adapt(TestInterface.class, new TestClass(1)),
		new TestClass(1));
	Assert.assertEquals(
		ModelAdapterUtil.adapt(TestInterface.class, new TestClass(1)),
		ModelAdapterUtil.adapt(TestInterface.class, new TestClass(1)));
	TestInterface proxyObject = ModelAdapterUtil.adapt(
		TestInterface.class, new TestClass(1));
	Assert.assertEquals(0, proxyObject.compareTo(new TestClass(1)));
	Assert.assertEquals(-1, proxyObject.compareTo(new TestClass(2)));
	Assert.assertEquals(1, proxyObject.compareTo(new TestClass(0)));
	Assert.assertEquals(
		0,
		proxyObject.compareTo(
			ModelAdapterUtil.adapt(TestInterface.class, new TestClass(1))));
	Assert.assertEquals(
		-1,
		proxyObject.compareTo(
			ModelAdapterUtil.adapt(TestInterface.class, new TestClass(2))));
	Assert.assertEquals(
		1,
		proxyObject.compareTo(
			ModelAdapterUtil.adapt(TestInterface.class, new TestClass(0))));
}