@Test
public void testGetConfigurationEntries()
{

    // Create a configuration entry keys.
    String configurationEntryKey1 = "KEY1";
    String configurationEntryKey2 = "KEY2";
    String configurationEntryKey3 = "KEY3";
    // Create a get configuration entry keys response.
    ConfigurationEntryKeys configurationEntryKeys =
        new ConfigurationEntryKeys(Arrays.asList(configurationEntryKey1, configurationEntryKey2, configurationEntryKey3));
    // Mock the call to the configuration entry service.
    when(configurationEntryService.getConfigurationEntries()).thenReturn(configurationEntryKeys);
    // Get configuration entry keys.
    ConfigurationEntryKeys response = configurationEntryRestController.getConfigurationEntries();
    // Verify the call.
    verify(configurationEntryService).getConfigurationEntries();
    // Validate the returned object.
    assertEquals("Response not equal to expected configuration entry keys response.", configurationEntryKeys, response);
}