### Question:
ScopeKey { public static <S> ScopeKey<S> of(Class<S> inputClazz){ return get(inputClazz, inputClazz.getName()); } private  ScopeKey(Class<T> clazz, String signature); static ScopeKey<S> get(Class<S> clazz, String signature); static ScopeKey<S> of(Class<S> inputClazz); ScopeKey<T> annotatedBy(String annotation); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final String GET_METHOD; }### Answer:
@Test public void testClassEqual(){ ScopeKey one = ScopeKey.of(ScopeKeyTest.class); ScopeKey two = ScopeKey.of(ScopeKeyTest.class); assertEquals(one, two); }
@Test public void testClassNotEqual(){ ScopeKey one = ScopeKey.of(ScopeKeyTest.class); ScopeKey two = ScopeKey.of(Method.class); assertNotEquals(one, two); }