@Test
public void TestFilterAdminOnlyFlowParams() throws IOException,
    ExecutorManagerException, UserManagerException {

  final ExecutableFlow flow = createExecutableFlow();
  final UserManager manager = TestUtils.createTestXmlUserManager();
  final User user = manager.getUser("testAdmin", "testAdmin");
  HttpRequestUtils.filterAdminOnlyFlowParams(manager,
      flow.getExecutionOptions(), user);
  Assert.assertTrue(flow.getExecutionOptions().getFlowParameters()
      .containsKey(ExecutionOptions.FLOW_PRIORITY));
  Assert.assertTrue(flow.getExecutionOptions().getFlowParameters()
      .containsKey(ExecutionOptions.USE_EXECUTOR));
}