Instance complex2(BundleContext bc) throws FileNotFoundException {
File file = bc.getBundle().getDataFile("file2.txt");
write(file, "I'm file 2");
Bean bean = new Bean();
bean.setMessage("I'm 2");
bean.setCount(2);
return instance().of(MyComplexComponent.class)
.with("file").setto(file)
.with("bean").setto(bean)
.with("map").setto(map(pair("a", "b2"), pair("c", "d2")));