Here is my test case https://github.com/garyrussell/spring-integration/commit/a7e82b1ed64f680905305b162df4f503ddb4a74e

The class cast occurs if I move the `ChildConfiguration` as an inner class (so it is also picked up by the component scan for the parent context).