Calculator { public String sayResult() { return result; } Calculator(String str); static void main(String[] args); String sayResult();  }
@Test public void whenAnyActionDoTypeResult(){ Calculator calc = new Calculator("Hello world"); String message = "Hello world"; String result = calc.sayResult(); Assert.assertThat(result,is(message)); }