@Test
public final void test_isValidServiceDefId_happyPath() throws Exception {

	
	// create: null id is ok
	assertTrue(_validator.isValidServiceDefId(null, Action.CREATE, _failures));
	assertTrue(_failures.isEmpty());
	
	// update: a service with same id exist
	long id = 7;
	when(_serviceDef.getId()).thenReturn(id);
	RangerServiceDef serviceDefFromDb = mock(RangerServiceDef.class);
	when(serviceDefFromDb.getId()).thenReturn(id);
	when(_store.getServiceDef(id)).thenReturn(serviceDefFromDb);
	assertTrue(_validator.isValidServiceDefId(id, Action.UPDATE, _failures));
	assertTrue(_failures.isEmpty());
}