FieldNameServiceImpl implements FieldNameService { @Override public String getFieldName(FieldKey key) { return fields.get(key.toString()); } FieldNameServiceImpl(VloConfig vloConfig); @Override String getFieldName(FieldKey key); @Override String getDeprecatedFieldName(FieldKey key);  }
@Test public void testGetFieldName() { fieldsMap.put(FieldKey.FORMAT.toString(), "testField"); final FieldNameServiceImpl instance = new FieldNameServiceImpl(vloConfig); assertEquals("testField", instance.getFieldName(FieldKey.FORMAT)); }