@Test
public void test_getService() {

	try {
		// if service store returns null or throws an exception then service is deemed invalid
		when(_store.getServiceByName("return null")).thenReturn(null);
		when(_store.getServiceByName("throw")).thenThrow(new Exception());
		RangerService service = mock(RangerService.class);
		when(_store.getServiceByName("good-service")).thenReturn(service);
	} catch (Exception e) {
		e.printStackTrace();
		Assert.fail("Unexpected exception during mocking!");
	}
	
	Assert.assertNull(_validator.getService("return null"));
	Assert.assertNull(_validator.getService("throw"));
	Assert.assertFalse(_validator.getService("good-service") == null);
}