### Question:
TPMDeviceState extends DeviceState { @Override public final boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof TPMDeviceState)) { return false; } final TPMDeviceState other = (TPMDeviceState) obj; return device.equals(other.device); } TPMDeviceState(final Device device); protected  TPMDeviceState(); final Long getId(); final Device getDevice(); final List<TPMMeasurementRecord> getTPMMeasurementRecords(); final TPMReport getReport(); final void setTPMReport(final TPMReport report); final boolean contains(final TPMMeasurementRecord record); @Override final int hashCode(); @Override final boolean equals(final Object obj); @Override final String toString();  }### Answer:
@Test public void testNotEqualsWithNull() { final Device device = new Device("Test Device"); final TPMDeviceState state = new TPMDeviceState(device); Assert.assertFalse(state.equals(null)); }