Response testResponse = context.getTestResponse(); AccountResponse actualdata =(AccountResponse) testResponse.getEntity();