class Calculator {

	@Cacheable("sum")
	public int sum(int a, int b) {
		try {
			Thread.sleep(3000);
		}
		catch (InterruptedException e) {
			e.printStackTrace();
		}

		return a + b;
	}

}

class CalculatorTest {

     private Calculator calculator;

     @Test
     public void testSum() {

          assertEquals(5, calculator.sum(2, 3));
     }

}