EmptyStrategyContainer implements IStrategyContainer { @Override public void remove(final Object key) throws StrategyContainerException { throw new StrategyContainerException( String.format("Cannot remove the strategy for %s from EmptyStrategyContainer", String.valueOf(key))); }  @Override IResolveDependencyStrategy resolve(final Object key); @Override void register(final Object key, final IResolveDependencyStrategy strategy); @Override void remove(final Object key);  }
@Test(expected = StrategyContainerException.class) public void testRemove() throws StrategyContainerException { container.remove(new Object()); }