@Test
public void testGenerateBusinessObjectDataPartitions()
{

    // Create a business object data partitions request.
    BusinessObjectDataPartitionsRequest businessObjectDataPartitionsRequest = new BusinessObjectDataPartitionsRequest();
    // Create a business object data partitions response.
    BusinessObjectDataPartitions businessObjectDataPartitions = new BusinessObjectDataPartitions();
    // Mock the external calls.
    when(businessObjectDataService.generateBusinessObjectDataPartitions(businessObjectDataPartitionsRequest)).thenReturn(businessObjectDataPartitions);
    // Call the method under test.
    BusinessObjectDataPartitions result = businessObjectDataRestController.generateBusinessObjectDataPartitions(businessObjectDataPartitionsRequest);
    // Verify the external calls.
    verify(businessObjectDataService).generateBusinessObjectDataPartitions(businessObjectDataPartitionsRequest);
    verifyNoMoreInteractionsHelper();
    // Validate the results.
    assertEquals(businessObjectDataPartitions, result);
}