### Question:
OsgiModelReference { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null || obj.getClass() != getClass()) { return false; } OsgiModelReference<?> other = (OsgiModelReference<?>) obj; return this.bundleId == other.bundleId && this.modelClass.getName().equals(other.modelClass.getName()); } OsgiModelReference(T model, long bundleId); T getModel(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testEqualsSelf() { OsgiModelReference<Object> reference = createReference(); assertThat(reference.equals(reference)).isTrue(); }
@Test public void testEqualsWithOtherType() { OsgiModelReference<Object> reference = createReference(); assertThat(reference.equals("")).isFalse(); }
@Test public void testEqualsToNull() { OsgiModelReference<Object> reference = createReference(); assertThat(reference.equals(null)).isFalse(); }