@Test
public void testGetByVersion() {

    doReturn(component).when(service).get(2);
    final Response response = resource.get(2);
    Assert.assertEquals(response.getStatus(), 200);
    Assert.assertEquals(response.getEntity(), component);
}