@Test
public void test_getService_byId() throws Exception {

	// if service store returns null or throws an exception then service is deemed invalid
	when(_store.getService(1L)).thenReturn(null);
	when(_store.getService(2L)).thenThrow(new Exception());
	RangerService service = mock(RangerService.class);
	when(_store.getService(3L)).thenReturn(service);
	
	Assert.assertNull(_validator.getService(1L));
	Assert.assertNull(_validator.getService(2L));
	Assert.assertTrue(_validator.getService(3L) != null);
}