ConstantValueTranslator extends ValueTranslatorImp { @Override public void setValue(AdaptrisMessage message, Object object) { return; } ConstantValueTranslator();  ConstantValueTranslator(String value, String type); @Override void setValue(AdaptrisMessage message, Object object); @Override Object getValue(AdaptrisMessage message); String getValue(); void setValue(String value);  }
@Test public void testSetValue() throws Exception { String newValue = "NewValue"; String originalValue = "OriginalValue"; constantValueTranslator.setType("java.lang.String"); constantValueTranslator.setValue(originalValue); constantValueTranslator.setValue(message, newValue); assertEquals(originalValue, constantValueTranslator.getValue()); }