@Test
public void test10getServiceByName() throws Exception {

	RangerService rangerService = rangerService();
	String name = rangerService.getName();
	Mockito.when(serviceREST.getServiceByName(name)).thenReturn(rangerService);
	RangerService dbRangerService = publicAPIsv2.getServiceByName(name);
	Assert.assertNotNull(dbRangerService);
	Assert.assertEquals(dbRangerService, rangerService);
	Assert.assertEquals(dbRangerService.getId(),
			rangerService.getId());
	Assert.assertEquals(dbRangerService.getName(),
			rangerService.getName());
	Mockito.verify(serviceREST).getServiceByName(name);
}