LogMessage { @NotNull public String getText() { return text; } LogMessage(@Min(value=0) int lineNumber, @NotNull String text); @Min(value=0) int getNumber(); @NotNull String getText();  }
@Test public void shouldGetText() { assertThat(logMessage.getText(), is(TEXT)); }