public void testComponentContextBuilder() throws Exception {
SystemContextFactoryBuilder builder = new SystemContextFactoryBuilder(null);
Component component = factory.createSystemComponent("test", null, SystemComponentImpl.class, Scope.AGGREGATE);
component.getImplementation().setComponentType(MockFactory.getIntrospector().introspect(SystemComponentImpl.class));
ConfiguredProperty cProp = factory.createConfiguredProperty();
Property prop = factory.createProperty();
prop.setName("testInt");
cProp.setValue(1);
cProp.setProperty(prop);
component.getConfiguredProperties().add(cProp);
cProp = factory.createConfiguredProperty();
prop = factory.createProperty();
prop.setName("testString");
cProp.setValue("test");
cProp.setProperty(prop);
component.getConfiguredProperties().add(cProp);
cProp = factory.createConfiguredProperty();
prop = factory.createProperty();
prop.setName("testDouble");
cProp.setValue(1d);
cProp.setProperty(prop);
component.getConfiguredProperties().add(cProp);
cProp = factory.createConfiguredProperty();
prop = factory.createProperty();
prop.setName("testFloat");
cProp.setValue(1f);
cProp.setProperty(prop);
component.getConfiguredProperties().add(cProp);
cProp = factory.createConfiguredProperty();
prop = factory.createProperty();
prop.setName("testShort");
cProp.setValue((short) 1);
cProp.setProperty(prop);
component.getConfiguredProperties().add(cProp);
cProp = factory.createConfiguredProperty();
prop = factory.createProperty();
prop.setName("testByte");
cProp.setValue((byte) 1);
cProp.setProperty(prop);
component.getConfiguredProperties().add(cProp);
cProp = factory.createConfiguredProperty();
prop = factory.createProperty();
prop.setName("testBoolean");
cProp.setValue(Boolean.TRUE);
cProp.setProperty(prop);
component.getConfiguredProperties().add(cProp);
cProp = factory.createConfiguredProperty();
prop = factory.createProperty();
prop.setName("testChar");
cProp.setValue('1');
cProp.setProperty(prop);
component.getConfiguredProperties().add(cProp);
builder.build(component);