### Question:
DefaultStaticContentFetcherService implements StaticContentFetcherService { @Override public String getContent(String key) { log.debug("getContent(" + key + ")"); StaticContent content = contentMap.get(key); if (content == null) { throw new IllegalArgumentException("Invalid content key: " + key); } return content.getContent(); } DefaultStaticContentFetcherService(RestTemplate restTemplate, List<StaticContent> contentObjects); @Override String getContent(String key); @Override void refreshAll(); @Override void refresh(String key); @Override void registerConsumer(StaticContentFetcherConsumer consumer); @Override void unregisterConsumer(StaticContentFetcherConsumer consumer);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void getContent_invalidId() { DefaultStaticContentFetcherService service = new DefaultStaticContentFetcherService(restTemplate, Arrays.asList(VALID_CONTENT_1, VALID_CONTENT_2, VALID_CONTENT_3)); service.getContent("INVALID"); }