Infra code to test different encaps and encap-testcases.