### Question:
PrimeIterator implements Iterator { @Override public boolean hasNext() { return findNextPrimeNumber() != -1; } PrimeIterator(int[] array); @Override boolean hasNext(); @Override Object next(); @Override void remove();  }### Answer:
@Test public void shouldReturnFalseCauseThereIsNoAnyPrimeNumber() { it = new PrimeIterator(new int[]{4, 6}); assertThat("should return false, cause there is no any prime number", it.hasNext(), is(false)); }