HttpResponse getHttpResponse(FetchRequest request) throws StrategyException {
// Mock the response
return resp;
}
};
s.process(ar, builder);
assertFalse("Strategy shouldn't have to set the id.", builder.hasId());
assertTrue("Must return a status.", builder.hasStatus());
assertEquals(status, builder.getStatus());
assertFalse("The mock has no contents.", builder.hasContents());