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