Add test for SPR-11844

I tried loads of different hacks to reproduce without
Spring Boot dependencies but in the end I couldn't
work out how to make a nested class fail to load that
way (while I know it's easy with Boot). The issue is
nothing to do with Spring Boot though, just to be 
clear.