7155693: CodeSource.matchLocation getPort test can be improved Reviewed-by: chegar
Reviewed-by: darcy, weijun