### Question:
DnsRecord { public boolean isIpRelatedRecord(String ip, String zone) { if (isARecord()) { return arecord.stream().anyMatch(record -> record.equals(ip)); } else if (isPtrRecord()) { return isIpRelatedPtrRecord(ip, zone); } else { return false; } }  String getIdnsname(); void setIdnsname(String idnsname); List<String> getArecord(); void setArecord(List<String> arecord); List<String> getSshfprecord(); void setSshfprecord(List<String> sshfprecord); List<String> getPtrrecord(); List<String> getSrvrecord(); void setPtrrecord(List<String> ptrrecord); void setSrvrecord(List<String> srvrecord); boolean isHostRelatedRecord(String fqdn, String domain); boolean isHostRelatedSrvRecord(String fqdn); List<String> getHostRelatedSrvRecords(String fqdn); boolean isIpRelatedRecord(String ip, String zone); boolean isARecord(); boolean isPtrRecord(); boolean isSshfpRecord(); boolean isSrvRecord(); @Override String toString();  }### Answer:
@Test public void testIpRelatedPtrRecordFalseIfNotPtrNotARecord() { assertFalse(underTest.isIpRelatedRecord("10.1.1.2", "2.10.in-addr.arpa.")); }