private GuvnorTaskDefinitionService createService(String baseUrl, String user, String password) {
GuvnorTaskDefinitionService service = new GuvnorTaskDefinitionService();
service.setHelper(new GuvnorHelper(baseUrl, user, password) {
@Override
public GetMethod createGetMethod(String url) {
return new MockGetMethod(url);
}
@Override
public PostMethod createPostMethod(String url) {
return new MockPostMethod(url);
}