assertSame( y, ( (PlaceholderString) grandchild.getInstance( Key.get( X.class, Names.named( "PS" ) ) ) ).fuzzy );
}
public void testParametersLookup()
{
final BeanLocator locator = Guice.createInjector( new WireModule( new AbstractModule()
{
@Override
protected void configure()
{
bind( ParameterKeys.PROPERTIES ).toInstance( Collections.singletonMap( "Hello", "world!" ) );
}
} ) ).getInstance( BeanLocator.class );
@SuppressWarnings( { "rawtypes", "unchecked" } )
final Iterator<Map<?, ?>> itr = new EntryListAdapter( locator.locate( ParameterKeys.PROPERTIES ) ).iterator();
assertTrue( itr.hasNext() );
final Map<?, ?> parameters = itr.next();
assertEquals( 1, parameters.size() );