### Question:
CacheKey implements Serializable { @Override public boolean equals(final Object obj) { return EqualsBuilder.reflectionEquals(this, obj); } CacheKey(final String groupName, final ResourceType type);  CacheKey(final String groupName, final ResourceType type, final boolean minimize); ResourceType getType(); String getGroupName(); boolean isMinimize(); CacheKey addAttribute(final String key, final String value); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { final CacheKey key1 = new CacheKey("g1", ResourceType.JS, true); final CacheKey key2 = new CacheKey("g1", ResourceType.JS, true); assertEquals(key1, key2); }
@Test public void testEquals2() { final CacheKey key1 = new CacheKey("g1", ResourceType.JS, false); final CacheKey key2 = new CacheKey("g1", ResourceType.JS, true); assertFalse(key1.equals(key2)); }