@Test
public void createWithTimeAndSizeInvalidCapacity() {

    try {
        ReplayProcessor.createWithTimeAndSize(1, TimeUnit.DAYS, Schedulers.computation(), -99);
        fail("Didn't throw IllegalArgumentException");
    } catch (IllegalArgumentException ex) {
        assertEquals("maxSize > 0 required but it was -99", ex.getMessage());
    }
}