add validate method to check integration definition
add returned and didNotReturn