* @author Ignasi Barrera
*/
@Test(groups = "unit", testName = "AbiquoApiTest")
public class AbiquoApiTest extends BaseAbiquoApiTest<AbiquoApi> {
public void testGet() throws SecurityException, NoSuchMethodException, IOException {
RESTLink link = new RESTLink("edit", "http://foo/bar");
link.setType(DatacentersDto.BASE_MEDIA_TYPE);
Invokable<?, ?> method = method(AbiquoApi.class, "get", RESTLink.class);
GeneratedHttpRequest request = processor.apply(Invocation.create(method, ImmutableList.<Object> of(link)));
assertRequestLineEquals(request, "GET http://foo/bar HTTP/1.1");