@Test
public void testEquals() {

  BaseType key = mock(BaseType.class);
  BaseType value = mock(BaseType.class);
  new EqualsTester()
      .addEqualityGroup(new Type(key), new Type(key, null, null, null))
      .addEqualityGroup(new Type(key, value, null, null), new Type(key, value, null, null))
      .addEqualityGroup(new Type(key, value, 12L, 34L), new Type(key, value, 12L, 34L))
      .testEquals();
}