### Question:
InjectionManager { @SuppressWarnings("rawtypes") public Object getInstanceDependecy(Class clazz) { return getInstanceDependecyC(clazz, true); } private  InjectionManager(); static InjectionManager getInstance(); @SuppressWarnings("rawtypes") Object getInstanceDependecy(Class clazz); @SuppressWarnings({ "rawtypes" }) Object getInstanceDependecyWithoutProxy(Class clazz);  }### Answer:
@Test public void testGetInstanceDependecy() { InjectionManager injectionManager=InjectionManager.getInstance(); assertNotNull(injectionManager); @SuppressWarnings({ "unchecked" }) Hashtable<String, Object> singletons=Mockito.mock(Hashtable.class); Mockito.when(singletons.containsKey(Mockito.anyObject())).thenReturn(true); injectionManager.setSingletons(singletons); injectionManager.getInstanceDependecy(Parser.class); }