@Test public void should_exception_when_calling_incr_n_with_consistency() throws Exception { Counter counter = CounterBuilder.incr(); exception.expect(UnsupportedOperationException.class); exception.expectMessage("This method is not meant to be called"); counter.incr(10L, EACH_QUORUM); }