### Question:
Nexus extends WeakReference<ClassLoader> { public static void clean(Reference<? super ClassLoader> reference) { TYPE_INITIALIZERS.remove(reference); } private  Nexus(Class<?> type, int identification); private  Nexus(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification); @SuppressWarnings("unused") static void initialize(Class<?> type, int identification); static void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, Object typeInitializer); static void clean(Reference<? super ClassLoader> reference); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); static final String PROPERTY; }### Answer:
@Test(expected = UnsupportedOperationException.class) @SuppressWarnings("unchecked") public void testUnavailableDispatcherCleanThrowsException() throws Exception { new NexusAccessor.Dispatcher.Unavailable("unavailable").clean(mock(Reference.class)); }