ConversionContext { @Deprecated public ConfigurationContext getConfigurationContext() { if(configuration!=null) { return configuration.getContext(); } return ConfigurationContext.EMPTY; } protected  ConversionContext(Builder builder); String getKey(); List<PropertyValue> getValues(); TypeLiteral<?> getTargetType(); AnnotatedElement getAnnotatedElement(); Configuration getConfiguration(); Map<String, String> getMeta(); void addSupportedFormats(@SuppressWarnings("rawtypes") Class<?> converterType, String... formatDescriptors); List<String> getSupportedFormats(); Builder toBuilder(); @Override String toString(); @Deprecated ConfigurationContext getConfigurationContext(); static final ConversionContext EMPTY; }
@Test public void testGetConfigurationContext(){ ConversionContext ctx = new ConversionContext.Builder("toString", TypeLiteral.of(List.class)) .addSupportedFormats(MyConverter.class, "0.0.0.0/nnn", "x.x.x.x/yyy") .setValues(PropertyValue.createObject().setValue("test", "value")).build(); assertThat(ctx.getConfigurationContext()).isNotNull(); }