@Test
public void testGroupAuditLog() {

    Schema schema = ZMSSchema.instance();
    Validator validator = new Validator(schema);
    // GroupAuditlog test
    GroupAuditLog ral = new GroupAuditLog().setMember("user.test").setAdmin("user.admin")
            .setCreated(Timestamp.fromMillis(123456789123L)).setAction("add").setAuditRef("zmstest");
    Result result = validator.validate(ral, "GroupAuditLog");
    assertTrue(result.valid);
    assertEquals(ral.getMember(), "user.test");
    assertEquals(ral.getAdmin(), "user.admin");
    assertEquals(ral.getCreated(), Timestamp.fromMillis(123456789123L));
    assertEquals(ral.getAction(), "add");
    assertEquals(ral.getAuditRef(), "zmstest");
    GroupAuditLog ral2 = new GroupAuditLog().setMember("user.test").setAdmin("user.admin")
            .setCreated(Timestamp.fromMillis(123456789123L)).setAction("add").setAuditRef("zmstest");
    assertTrue(ral2.equals(ral));
    assertTrue(ral.equals(ral));
    ral2.setAuditRef(null);
    assertFalse(ral2.equals(ral));
    ral2.setAction(null);
    assertFalse(ral2.equals(ral));
    ral2.setCreated(null);
    assertFalse(ral2.equals(ral));
    ral2.setAdmin(null);
    assertFalse(ral2.equals(ral));
    ral2.setMember(null);
    assertFalse(ral2.equals(ral));
    assertFalse(ral2.equals(new String()));
}