SqlStreamTerminatorComponentImpl implements SqlStreamTerminatorComponent { @Override @SuppressWarnings("unchecked") public <ENTITY> CountTerminator<ENTITY> getCountTerminator() { return (CountTerminator<ENTITY>) countTerminator; }  @Override @SuppressWarnings("unchecked") ForEachTerminator<ENTITY> getForEachTerminator(); @Override void setForEachTerminator(ForEachTerminator<ENTITY> forEach); @Override @SuppressWarnings("unchecked") ForEachOrderedTerminator<ENTITY> getForEachOrderedTerminator(); @Override void setForEachOrderedTerminator(ForEachOrderedTerminator<ENTITY> forEachOrdered); @Override @SuppressWarnings("unchecked") ToArrayTerminator<ENTITY> getToArrayTerminator(); @Override void setToArrayTerminator(ToArrayTerminator<ENTITY> toArray); @Override @SuppressWarnings("unchecked") ToArrayGeneratorTerminator<ENTITY> getToArrayGeneratorTerminator(); @Override void setToArrayGeneratorTerminator(ToArrayGeneratorTerminator<ENTITY> toArray); @Override @SuppressWarnings("unchecked") ReduceTerminator<ENTITY> getReduceTerminator(); @Override void setReduceTerminator(ReduceTerminator<ENTITY> reduce); @Override @SuppressWarnings("unchecked") ReduceIdentityTerminator<ENTITY> getReduceIdentityTerminator(); @Override void setReduceIdentityTerminator(ReduceIdentityTerminator<ENTITY> reduce); @Override @SuppressWarnings("unchecked") ReduceIdentityCombinerTerminator<ENTITY> getReduceIdentityCombinerTerminator(); @Override void setReduceIdentityCombinerTerminator(ReduceIdentityCombinerTerminator<ENTITY> reduce); @Override @SuppressWarnings("unchecked") CollectTerminator<ENTITY> getCollectTerminator(); @Override void setCollectTerminator(CollectTerminator<ENTITY> collect); @Override @SuppressWarnings("unchecked") CollectSupplierAccumulatorCombinerTerminator<ENTITY> getCollectSupplierAccumulatorCombinerTerminator(); @Override void setCollectSupplierAccumulatorCombinerTerminator(CollectSupplierAccumulatorCombinerTerminator<ENTITY> collect); @Override @SuppressWarnings("unchecked") MinTerminator<ENTITY> getMinTerminator(); @Override void setMinTerminator(MinTerminator<ENTITY> collect); @Override @SuppressWarnings("unchecked") MaxTerminator<ENTITY> getMaxTerminator(); @Override void setMaxTerminator(MaxTerminator<ENTITY> collect); @Override @SuppressWarnings("unchecked") AnyMatchTerminator<ENTITY> getAnyMatchTerminator(); @Override void setAnyMatchTerminator(AnyMatchTerminator<ENTITY> anyMatch); @Override @SuppressWarnings("unchecked") AllMatchTerminator<ENTITY> getAllMatchTerminator(); @Override void setAllMatchTerminator(AllMatchTerminator<ENTITY> allMatch); @Override @SuppressWarnings("unchecked") NoneMatchTerminator<ENTITY> getNoneMatchTerminator(); @Override void setNoneMatchTerminator(NoneMatchTerminator<ENTITY> noneMatch); @Override @SuppressWarnings("unchecked") FindFirstTerminator<ENTITY> getFindFirstTerminator(); @Override void setFindFirstTerminator(FindFirstTerminator<ENTITY> noneMatch); @Override @SuppressWarnings("unchecked") FindAnyTerminator<ENTITY> getFindAnyTerminator(); @Override void setFindAnyTerminator(FindAnyTerminator<ENTITY> noneMatch); @Override @SuppressWarnings("unchecked") CountTerminator<ENTITY> getCountTerminator(); @Override void setCountTerminator(CountTerminator<ENTITY> count); @Override @SuppressWarnings("unchecked") SpliteratorTerminator<ENTITY> getSpliteratorTerminator(); @Override void setSpliteratorTerminator(SpliteratorTerminator<ENTITY> count); @Override @SuppressWarnings("unchecked") IteratorTerminator<ENTITY> getIteratorTerminator(); @Override void setIteratorTerminator(IteratorTerminator<ENTITY> count); @Override @SuppressWarnings("unchecked") DoubleCountTerminator<ENTITY> getDoubleCountTerminator(); @Override void setDoubleCountTerminator(DoubleCountTerminator<ENTITY> count); @Override @SuppressWarnings("unchecked") IntCountTerminator<ENTITY> getIntCountTerminator(); @Override void setIntCountTerminator(IntCountTerminator<ENTITY> count); @Override @SuppressWarnings("unchecked") LongCountTerminator<ENTITY> getLongCountTerminator(); @Override void setLongCountTerminator(LongCountTerminator<ENTITY> count);  }
@Test void testGetCountTerminator() { assertEquals( OptimizedCountTerminator.create().getClass().getName(), instance.getCountTerminator().getClass().getName() ); }