{
final IJavaProject project = getJavaProject();
writeJavaSourceFile( "foo.bar", "TestClass", "public class TestClass { public static class Inner {} }" );
final IFile file = project.getProject().getFile( "foobar.xml" );
final TestElement element = TestElement.TYPE.instantiate( new RootXmlResource( new XmlResourceStore( new WorkspaceFileResourceStore( file ) ) ) );
element.setSomeClass( "foo.bar.TestClass$Inner" );
final JavaType type = element.getSomeClass().target();
assertNotNull( type );