EasyMock.expectLastCall().andThrow(new RuntimeException());
// application 2 will throw an exception while starting
Application application2 = control.createMock(Application.class,
new ConstructorArgs(Application.class.getConstructor()),
EasyMock.expectLastCall().andThrow(new RuntimeException());
// application 2 will throw an exception while starting
Application application2 = control.createMock(Application.class,
new ConstructorArgs(Application.class.getConstructor()),