@Test
public void testGetBusinessObjectDataStatusMissingOptionalParametersPassedAsNulls()
{

    // Create a business object data status information.
    BusinessObjectDataStatusInformation businessObjectDataStatusInformation = new BusinessObjectDataStatusInformation();
    // Create a business object data key.
    BusinessObjectDataKey businessObjectDataKey =
        new BusinessObjectDataKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, null, PARTITION_VALUE, new ArrayList<>(), null);
    // Mock the external calls.
    when(herdStringHelper.splitStringWithDefaultDelimiterEscaped(null)).thenReturn(new ArrayList<>());
    when(businessObjectDataStatusService.getBusinessObjectDataStatus(businessObjectDataKey, null)).thenReturn(businessObjectDataStatusInformation);
    // Call the method under test.
    BusinessObjectDataStatusInformation result = businessObjectDataStatusRestController
        .getBusinessObjectDataStatus(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, null, PARTITION_VALUE, null, null, null);
    // Verify the external calls.
    verify(herdStringHelper).splitStringWithDefaultDelimiterEscaped(null);
    verify(businessObjectDataStatusService).getBusinessObjectDataStatus(businessObjectDataKey, null);
    verifyNoMoreInteractionsHelper();
    // Validate the results.
    assertEquals(businessObjectDataStatusInformation, result);
}