ContextTransformer implements Transformer { public String getKey() { return key; } ContextTransformer(String key); String getKey(); @Override Object transform(Object o); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetKey() { ContextTransformer transformer = new ContextTransformer("key"); Assert.assertEquals("key", transformer.getKey()); }