### Question:
OutputVerification { public OutputVerification<TOutput> within(Long millis) { this.timeout = millis; return this; } OutputVerification(Reader<TOutput> output); OutputVerification<TOutput> within(Long millis); OutputVerification<TOutput> within(long value, TimeUnit timeUnit); OutputVerification<TOutput> whileContinuingOnErrors(ErrorCollector collector); OutputVerification<TOutput> should(
        String reason,
        Matcher<? super Collection<TOutput>> matcher
    ); OutputVerification<TOutput> should(Consumer<Collection<TOutput>> consumer);  }### Answer:
@Test public void within_GivenValueAndUnits_ShouldDelegateToWithinMilliseconds() { FakeReader reader = new FakeReader(Collections::emptyList); OutputVerification<String> spy = Mockito.spy(new OutputVerification<>(reader)); spy.within(2, TimeUnit.MINUTES); Mockito.verify(spy).within(120000L); }