8048830: Implement tests for new functionality provided in JEP 166Reviewed-by: vinnieContributed-by: bhanu.prakash.gopularam@oracle.com