@When("I change the current account expiration date to \"(.+)\"") public void changeCurrentAccountExpirationDate(String newExpiration) throws Exception { Account currAcc = (Account) stepData.get("LastAccount"); Date newDate = parseDateString(newExpiration); try { primeException(); currAcc.setExpirationDate(newDate); Account tmpAcc = accountService.update(currAcc); stepData.put("LastAccount", tmpAcc); } catch (KapuaException e) { verifyException(e); } }