@Test
public void testGet() {

    doReturn(ImmutableSet.of(component)).when(service).search(anyString(), anyString(), anyString());
    final Response response = resource.get(component.getNamespace(), component.getName(), component.getVersion());
    Assert.assertEquals(response.getStatus(), 200);
    Assert.assertEquals(response.getEntity(), component);
}