### Question:
HCatURI { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; HCatURI other = (HCatURI) obj; return uri.equals(other.uri); } HCatURI(String s);  HCatURI(URI uri); URI getURI(); String toURIString(); String getServerEndPointWithScheme(String scheme); String getServerEndPoint(); String getServer(); String getDb(); String getTable(); Map<String, String> getPartitionMap(); String getPartitionValue(String key); void setPartition(String key, String value); boolean hasPartition(String key); static String getHCatURI(String server, String db, String table, Map<String, String> partitions); static String getHCatURI(String scheme, String server, String db, String table, Map<String, String> partitions); @Override int hashCode(); @Override boolean equals(Object obj); String toPartitionFilter(String type); String toPartitionString(); String toPartitionValueString(String type); @Override String toString(); static final String PARTITION_SEPARATOR; static final String PARTITION_KEYVAL_SEPARATOR; static final String PATH_SEPARATOR; static final String PARTITION_VALUE_QUOTE; }### Answer:
@Test public void testEqualsNegative() { HCatURI uri1 = null; HCatURI uri2 = null; HCatURI uri3 = null; HCatURI uri4 = null; HCatURI uri5 = null; try { uri1 = new HCatURI("hcat: uri2 = new HCatURI("hcat: uri3 = new HCatURI("hcat: uri4 = new HCatURI("hcat: uri5 = new HCatURI("hcat: } catch (URISyntaxException e) { fail(e.getMessage()); } assertFalse(uri1.equals(uri2)); assertFalse(uri2.equals(uri1)); assertFalse(uri1.equals(uri3)); assertFalse(uri3.equals(uri1)); assertFalse(uri1.equals(uri4)); assertFalse(uri4.equals(uri1)); assertFalse(uri1.equals(uri5)); assertFalse(uri5.equals(uri1)); }