@Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderWithResourceNameDataProvider")
public void testOptions(RootBuilderWrapper<Long, Greeting> builders, String resourceName)
throws RemoteInvocationException, URISyntaxException, IOException
{
Request<OptionsResponse> optionsRequest = builders.options().build();
OptionsResponse optionsResponse = REST_CLIENT.sendRequest(optionsRequest).getResponse().getEntity();
Map<String, ResourceSchema> resources = optionsResponse.getResourceSchemas();
Assert.assertEquals(resources.size(), 1);
ResourceSchema resourceSchema = resources.get("com.linkedin.restli.examples.greetings.client." + resourceName);
// sanity check the resource schema
Assert.assertEquals(resourceSchema.getName(), resourceName);
Assert.assertTrue(resourceSchema.hasCollection());