Avoid using Java 1.6+ API in this test.