private function createContext() { $file = new FileGenerator(); $typeMap = new TypeMap('MyNamespace', ['MyType' => ['myProperty' => 'string']]); return new ClassMapContext($file, $typeMap); }