DozerConverter implements ConfigurableCustomConverter { public String getParameter() { String theParameter = parameter.get(); if (theParameter == null) { throw new IllegalStateException("Custom Converter Parameter has not yet been set!"); } return theParameter; } DozerConverter(Class<A> prototypeA, Class<B> prototypeB); Object convert(Object existingDestinationFieldValue, Object sourceFieldValue, Class<?> destinationClass, Class<?> sourceClass); abstract B convertTo(A source, B destination); B convertTo(A source); abstract A convertFrom(B source, A destination); A convertFrom(B source); void setParameter(String parameter); String getParameter();  }
@Test(expected = IllegalStateException.class) public void test_parameterNotSet() { converter.getParameter(); fail(); }