Hashtable newProps = new Hashtable();
newProps.put("override.property.1", "setFromMethod");
newProps.put("override.property.2", "setFromMethod");
newProps.put("override.property.3", "setFromMethod");
newProps.put(ComponentConstants.COMPONENT_NAME, "setFromMethod");
<BUG>newProps.put(ComponentConstants.COMPONENT_ID, new Long(-1));
</BUG>
newProps.put("name", "test");
ComponentInstance ci = factory.newInstance(newProps);
assertNotNull("newInstance() method shouldn't return null", ci);

Hashtable newProps = new Hashtable();
newProps.put("override.property.1", "setFromMethod");
newProps.put("override.property.2", "setFromMethod");
newProps.put("override.property.3", "setFromMethod");
newProps.put(ComponentConstants.COMPONENT_NAME, "setFromMethod");
newProps.put(ComponentConstants.COMPONENT_ID, Long.valueOf(-1));
newProps.put("name", "test");
ComponentInstance ci = factory.newInstance(newProps);
assertNotNull("newInstance() method shouldn't return null", ci);
