6465666768697071727374
{ if ( entry.getValue() instanceof Class<?> ) { Field field = entry.getKey(); Mock mock = field.getAnnotation( Mock.class ); mockedObjects.put( entry.getKey(), engine.createMock( (Class<?>) entry.getValue(), mock.type() ) ); } } }