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