AttributeKey { public String getName() { return attributeName; } AttributeKey(Class<T> attributeType, String attributeName); static AttributeKey<T> createKey(Class<T> attributeType, String attributeName); String getName(); Class<T> getType(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void getName() throws Exception { String name = new AttributeKey<Number>(Number.class, "keyName").getName(); assertThat(name, is("keyName")); }