@Test
public final void testIsValid_Long_failures() throws Exception {

	Long id = null;
	// passing in wrong action type
	boolean result = _validator.isValid((Long)null, Action.CREATE, _failures);
	assertFalse(result);
	_utils.checkFailureForInternalError(_failures);
	// passing in null id is an error
	_failures.clear(); assertFalse(_validator.isValid((Long)null, Action.DELETE, _failures));
	_utils.checkFailureForMissingValue(_failures, "id");
	// It is ok for a service def with that id to not exist!
	id = 3L;
	when(_store.getServiceDef(id)).thenReturn(null);
	_failures.clear(); assertTrue(_validator.isValid(id, Action.DELETE, _failures));
	assertTrue(_failures.isEmpty());		
	// happypath
	when(_store.getServiceDef(id)).thenReturn(_serviceDef);
	_failures.clear(); assertTrue(_validator.isValid(id, Action.DELETE, _failures));
	assertTrue(_failures.isEmpty());
}