### Question:
ShortString implements EncodableData { @Override public boolean equals(Object obj) { if (this == obj) { return true; } return (obj instanceof ShortString) && (Arrays.equals(content, ((ShortString) obj).content)); } @SuppressFBWarnings("EI_EXPOSE_REP2")  ShortString(long length, byte[] content); long getSize(); void write(ByteBuf buf); static ShortString parse(ByteBuf buf); static ShortString parseString(String data); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); boolean isEmpty();  }### Answer:
@Test public void testEquals() throws Exception { ShortString other = ShortString.parseString("different string"); ShortString similar = ShortString.parseString(DEFAULT_DATA_STRING); Assert.assertTrue(DEFAULT_TEST_OBJECT.equals(DEFAULT_TEST_OBJECT), "equals() should return true for similar objects"); Assert.assertTrue(DEFAULT_TEST_OBJECT.equals(similar), "equals() should return true for similar objects"); Assert.assertFalse(DEFAULT_TEST_OBJECT.equals(other), "equals() should return false for different objects"); Assert.assertFalse(DEFAULT_TEST_OBJECT.equals(DEFAULT_DATA_STRING), "equals() should return false for different objects"); }