### Question:
Prodigy { public static Map<String, Class<? extends Fault>> faults() { return container.repository().load(); } private  Prodigy(); @SuppressWarnings("unchecked") static T adapt(T target); static String inject(String name, String params); static void eject(String id); static Map<String, Class<? extends Fault>> faults(); static Entry status(String id); static List<Entry> status(); static void push(String name, InputStream jar);  }### Answer:
@Test public void testFaults() { Repository repository = mock(Repository.class); Map<String, Class<? extends Fault>> faults = new LinkedHashMap<>(); faults.put("fault-1", Fault1.class); faults.put("fault-2", Fault2.class); doReturn(faults).when(repository).load(); Prodigy.container(new Container(mock(Scheduler.class), repository)); assertSame(faults, Prodigy.faults()); }