Jordan Cox marked his England Test call-up in style, smashing an unbeaten 184 for Essex against Leicestershire on a rain-affected opening day of the County Championship.