when(embeddedIdProperties.getClusteringComponents().getClusteringOrders()).thenReturn(asList(clusteringOrder));
when(tableOptions.clusteringOrder(clusteringOrdersCaptor.capture())).thenReturn(tableOptions);
//When
final Options actual = view.addClusteringOrder(tableOptions);
//Then
assertThat(actual).isSameAs(tableOptions);
assertThat(clusteringOrdersCaptor.getValue()).isSameAs(clusteringOrder);
}