@Test
public void testEquals() throws Exception {

  ViewEntityEntity viewEntityEntity = new ViewEntityEntity();
  viewEntityEntity.setId(99L);
  viewEntityEntity.setClassName("TestClass");
  viewEntityEntity.setIdProperty("id");
  viewEntityEntity.setViewName("foo");
  viewEntityEntity.setViewInstanceName("bar");
  ViewEntityEntity viewEntityEntity2 = new ViewEntityEntity();
  viewEntityEntity2.setId(99L);
  viewEntityEntity2.setClassName("TestClass");
  viewEntityEntity2.setIdProperty("id");
  viewEntityEntity2.setViewName("foo");
  viewEntityEntity2.setViewInstanceName("bar");
  Assert.assertTrue(viewEntityEntity.equals(viewEntityEntity2));
  viewEntityEntity2.setId(100L);
  Assert.assertFalse(viewEntityEntity.equals(viewEntityEntity2));
}