@Test
public void testGetDataProviders() throws Exception
{

    DataProviderKeys dataProviderKeys =
        new DataProviderKeys(Arrays.asList(new DataProviderKey(DATA_PROVIDER_NAME), new DataProviderKey(DATA_PROVIDER_NAME_2)));
    when(dataProviderService.getDataProviders()).thenReturn(dataProviderKeys);
    // Retrieve a list of data provider keys.
    DataProviderKeys resultDataProviderKeys = dataProviderRestController.getDataProviders();
    // Verify the external calls.
    verify(dataProviderService).getDataProviders();
    verifyNoMoreInteractions(dataProviderService);
    // Validate the returned object.
    assertEquals(dataProviderKeys, resultDataProviderKeys);
}