@Test(expected = IllegalStateException.class)
public void finishBeforeInit() {

    ToArraySplitHandler handler = new ToArraySplitHandler(new BucketTestUtils.SingletonSplitter<String>());
    handler.finish();
}