### Question:
Document { @Loggable public void exception() { throw new IllegalStateException(); } Document(@NotNull String txt); @Loggable String name(); @Loggable void exception();  }### Answer:
@Test(expected = IllegalStateException.class) public void throwsAndLogs() throws Exception { new Document("foo").exception(); }