@Test
public void shouldRetrievePropertyWithShortName() {
Map<String, Object> properties = new HashMap<String, Object>();
properties.put( "service", "other" );
ConfigurationPropertyReader reader = new ConfigurationPropertyReader( properties, new ClassLoaderServiceImpl() );
MyService value = reader.property( "service", MyService.class )
.instantiate()
.withShortNameResolver( new MyShortNameResolver() )
.getValue();
assertThat( value.getClass() ).isEqualTo( MyOtherServiceImpl.class );