@Test
public void testGetCustomDdls()
{

    BusinessObjectFormatKey businessObjectFormatKey =
        new BusinessObjectFormatKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION);
    CustomDdlKeys customDdlKeys =
        new CustomDdlKeys(Arrays.asList(new CustomDdlKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, "ddl")));
    when(customDdlService.getCustomDdls(businessObjectFormatKey)).thenReturn(customDdlKeys);
    // Retrieve a list of custom DDL keys.
    CustomDdlKeys resultCustomDdlKeys =
        customDdlRestController.getCustomDdls(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION);
    // Verify the external calls.
    verify(customDdlService).getCustomDdls(businessObjectFormatKey);
    verifyNoMoreInteractions(customDdlService);
    // Validate the returned object.
    assertEquals(customDdlKeys, resultCustomDdlKeys);
}