Config implements ValueProvider { public void setContext(final Context context) { initProviderChain(); providerChain.add(new ResourceValueProvider(context)); } private  Config(); static Config getInstance(); void setContext(final Context context); String getPropertyValue(final Property property); Integer getPropertyValueAsInt(final Property property);  }
@Test public void setContext() { toTest.setContext(mock(Context.class)); testProviderChain(); assertTrue(toTest.providerChain.size() >= 2); assertTrue(toTest.providerChain.get(1) instanceof ResourceValueProvider); }