public void testMaybeCompileModuleImplWithBatchingNotLastModule() {
BatchingStrategy batchingStrategy = new ClassBatchingStrategy();
assertFalse(batchingStrategy.isSingleTestOnly());
// Maybe add the current test.
GWTTestCase testCase = new MockGWTTestCase();
MockCompileStrategy strategy = new MockCompileStrategy(1000);
try {
strategy.maybeCompileModuleImpl(testCase.getModuleName(),
testCase.getSyntheticModuleName(), testCase.getStrategy(),
batchingStrategy, TreeLogger.NULL);
} catch (UnableToCompleteException e) {
fail("Unexpected UnableToCompleteException: " + e.getMessage());
}
// Verify the test block is added to the queue.
strategy.getMessageQueue().assertIsLastBlock(false);
strategy.getMessageQueue().assertTestBlocks(
batchingStrategy.getTestBlocks(testCase.getSyntheticModuleName()));
}