Right; it only fails if you move the `ChildConfiguration` into the main test class as an inner static class (and the class cast occurs while trying to create the main context).