Exclude a failing test on Java 6.

See #628