@Test
public void testBoot() throws Exception {
PentahoSystemBoot boot = new PentahoSystemBoot();
boot.setFilePath( "test-src/solution" );
IPentahoObjectFactory factory = boot.getFactory();
assertNotNull( "object factory is null", factory );
assertTrue( "object factory not definable", factory instanceof IPentahoDefinableObjectFactory );
boot.define( ISolutionEngine.class.getSimpleName(), Object1.class.getName(),
IPentahoDefinableObjectFactory.Scope.GLOBAL );
boot.define( "MyObject", Object1.class.getName(), IPentahoDefinableObjectFactory.Scope.GLOBAL );
boot.define( "MyObject", Object2.class.getName(), IPentahoDefinableObjectFactory.Scope.GLOBAL );
assertFalse( boot.isInitialized() );
boolean ok = boot.start();
assertNull( boot.getSettingsProvider() );
assertTrue( boot.isInitialized() );
assertTrue( ok );
factory = boot.getFactory();
Object2 object = factory.get( Object2.class, "MyObject", null );
assertNotNull( "object get failed", object );
assertEquals( "file path is wrong", "test-src/solution", boot.getFilePath() );