public void test() throws Exception {
final Assembler assembler = new Assembler();
final ConfigurationFactory factory = new ConfigurationFactory();
final SingletonBean singletonBean = new SingletonBean(Blue.class);
// keep
singletonBean.getEnvEntry().add(new EnvEntry()
.name("message")
.type(String.class)
.value("hello")
.injectionTarget(Blue.class, "message")
);
// remove
singletonBean.getEnvEntry().add(new EnvEntry().name("novalue1").type(String.class));
singletonBean.getEnvEntry().add(new EnvEntry().name("novalue2"));
// fill in type
singletonBean.getEnvEntry().add(new EnvEntry().name("value-but-no-type1").value("10")
.injectionTarget(Blue.class, "number")
.injectionTarget(Orange.class, "number") // attempt to confuse the type
);
singletonBean.getEnvEntry().add(new EnvEntry().name("value-but-no-type2").value("D")
.injectionTarget(Blue.class, "letter"))
;
singletonBean.getEnvEntry().add(new EnvEntry().name("value-but-no-type3").value("2")
.injectionTarget(Blue.class, "vague") // short
.injectionTarget(Orange.class, "vague") // character
);
final EjbJar ejbJar = new EjbJar();