ImmutableList.Builder<String> libsBuilder =
ImmutableList.<String>builder().add(ConfigInjectionProcessor.CONFIG_FEATURE,
"feature1", "feature2");
if (extraContrib) {
libsBuilder.add("feature3");
ConfigContributor cc = control.createMock(ConfigContributor.class);
Capture<Map<String, Object>> captureConfig = new Capture<Map<String, Object>>();
cc.contribute(capture(captureConfig), eq(CONTAINER), eq(HOST));
expectLastCall().andAnswer(new IAnswer<Void>() {
@SuppressWarnings("unchecked")
public Void answer() throws Throwable {
Map<String, Object> config = (Map<String, Object>)getCurrentArguments()[0];
String f3Value = (String)config.get("feature3");