Summary: Add RuntimePermission tests for setFactory Reviewed-by: weijun, mullan Contributed-by: felix.yang@oracle.com