// Create a new jar for version 1.1.0
ReleaseId releaseId2 = ks.newReleaseId( "org.kie", "test-upgrade", "1.1.0" );
km = createAndDeployJar( ks, releaseId2, file2 );
// try to update the container to version 1.1.0
Results results = kc.updateToVersion( releaseId2 );
assertFalse("Errors detected on updateToVersion: " + results.getMessages(org.kie.api.builder.Message.Level.ERROR), results.hasMessages(org.kie.api.builder.Message.Level.ERROR));
// continue working with the session
ksession.insert( new FooEvent( 1 ) );
assertEquals( 2, ksession.fireAllRules() );
}