container.run();
assertThat(stateWrapper.state, is(ContainerState.COMPLETED));
assertThat(stateWrapper.exit, instanceOf(Integer.class));
assertThat((Integer)stateWrapper.exit, is(10));
context.stop();
}
@Test
public void testContainerBeanThrowsException() {
@SuppressWarnings("resource")