@Test(expected = ActionParamsException.class)
public void testWithInvalidParamType() throws Exception {

    final Map<String, String> parameters = new HashMap<String, String>();
    parameters.put("id", "this should be of type long");
    final ActionParameters params = createActionParams(parameters, getLoggedInUser());
    handler.handlePost(params);
    checkDeleteNotCalled();
    fail("ActionParamsException should have been thrown");
}