SqlScript implements Iterable<String> { @Override public Spliterator<String> spliterator() { throw new UnsupportedOperationException(); } SqlScript(final String script); @Override Iterator<String> iterator(); @Override Spliterator<String> spliterator();  }
@Test(expected = UnsupportedOperationException.class) public void testSpliteratorIsNotSupported() { final SqlScript script = new SqlScript(TEST_SCRIPT); script.spliterator(); }