@Test public void testRemoveOverride() { SpiFactory.override(MockSPI.class, mock(MockSPI.class)); SpiFactory.removeOverride(MockSPI.class); assertThat(SpiFactory.getProvider(MockSPI.class)).isInstanceOf(MockSpiImpl.class); }
public static void removeOverride(final Class<?> clazz) { overrides.remove(clazz); }
SpiFactory { public static void removeOverride(final Class<?> clazz) { overrides.remove(clazz); } }
SpiFactory { public static void removeOverride(final Class<?> clazz) { overrides.remove(clazz); }  }
SpiFactory { public static void removeOverride(final Class<?> clazz) { overrides.remove(clazz); }  @SuppressWarnings("unchecked") static T override(final Class<T> clazz, final T object); static void removeOverride(final Class<?> clazz); @SuppressWarnings("unchecked") static T getProvider(final Class<T> clazz); }
SpiFactory { public static void removeOverride(final Class<?> clazz) { overrides.remove(clazz); }  @SuppressWarnings("unchecked") static T override(final Class<T> clazz, final T object); static void removeOverride(final Class<?> clazz); @SuppressWarnings("unchecked") static T getProvider(final Class<T> clazz);  }