@Test
public final void test_isValidServiceDefId_failures() throws Exception {

	
	// id is required for update
	assertFalse(_validator.isValidServiceDefId(null, Action.UPDATE, _failures));
	_utils.checkFailureForMissingValue(_failures, "id");
	
	// update: service should exist for the passed in id
	long id = 7;
	when(_serviceDef.getId()).thenReturn(id);
	when(_store.getServiceDef(id)).thenReturn(null);
	assertFalse(_validator.isValidServiceDefId(id, Action.UPDATE, _failures));
	_utils.checkFailureForSemanticError(_failures, "id");
	when(_store.getServiceDef(id)).thenThrow(new Exception());
	assertFalse(_validator.isValidServiceDefId(id, Action.UPDATE, _failures));
	_utils.checkFailureForSemanticError(_failures, "id");
}