return parameters;
}
@Test
public void testSortingParameters() {
InOrder inOrder = Mockito.inOrder(mockedQuery);
executeAndVerifySuccessfulSorting("id", "asc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymentId();
inOrder.verify(mockedQuery).asc();
inOrder = Mockito.inOrder(mockedQuery);
executeAndVerifySuccessfulSorting("id", "desc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymentId();
inOrder.verify(mockedQuery).desc();
inOrder = Mockito.inOrder(mockedQuery);
executeAndVerifySuccessfulSorting("deploymentTime", "asc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymenTime();
inOrder.verify(mockedQuery).asc();
inOrder = Mockito.inOrder(mockedQuery);
executeAndVerifySuccessfulSorting("deploymentTime", "desc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymenTime();
inOrder.verify(mockedQuery).desc();
inOrder = Mockito.inOrder(mockedQuery);
executeAndVerifySuccessfulSorting("name", "asc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymentName();
inOrder.verify(mockedQuery).asc();
inOrder = Mockito.inOrder(mockedQuery);
executeAndVerifySuccessfulSorting("name", "desc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymentName();
inOrder.verify(mockedQuery).desc();
}