The test I added to CliTest used `serviceType: brooklyn.cli.CliTest$ExampleEntity`. getCanonicalName changed this to `brooklyn.cli.CliTest.ExampleEntity` and caused the class load to fail.