@Test(expected = IndexNotFoundException.class)
public void executeArithmeticThrowsIndexNotFoundException() {

  String attributeName = "name";
  doReturn(attributeName).when(arithmeticCriteria).getAttributeName();
  doReturn(null).when(indexes).get(attributeName);
  handler.executeArithmetic(arithmeticCriteria);
}