ResourceCacheKey { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_locale == null) ? 0 : m_locale.hashCode()); result = prime * result + ((m_urn == null) ? 0 : m_urn.hashCode()); return result; } ResourceCacheKey(IResourceUrn urn, IResourceLocale locale); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testConstructor() { IResourceUrn urn = new ResourceUrn("js", "local", "/js/sample/sample.js"); IResourceLocale locale = new ResourceLocale(new Locale("en", "US")); ResourceCacheKey cacheKey = new ResourceCacheKey(urn, locale); Assert.assertTrue(cacheKey.hashCode() != 31); }