private Properties getDistributedSystemProperties() {
    Properties config = new Properties();
    config.setProperty(MCAST_PORT, "0");
    config.setProperty(LOCATORS, "");
    config.setProperty(SERIALIZABLE_OBJECT_FILTER,
        "org.apache.geode.test.junit.rules.**;org.apache.geode.internal.cache.execute.**;org.apache.geode.internal.cache.functions.**;org.apache.geode.test.dunit.**");
    return config;
  }
This tests make sure that, in case of LonerDistributedSystem we don't get ClassCast Exception.
Just making sure that the function executed on lonerDistributedSystem.

<p>
Regression test for bug: If invoked from LonerDistributedSystem, FunctionService.onMembers()
throws ClassCastException
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/execute/FunctionExecutionOnLonerRegressionTest.java