### Question:
DataServiceServlet extends ApiServlet { protected BeanConverter getConverterForFormat(String format) { return ATOM_FORMAT.equals(format) ? atomConverter : XML_FORMAT.equals(format) ? xmlConverter : jsonConverter; }  BeanConverter getConverterForRequest(@Nullable String contentType, String format); static final Set<String> ALLOWED_CONTENT_TYPES; }### Answer:
@Test public void testGetConverterForFormat() throws Exception { assertConverterForFormat(atomConverter, "atom"); assertConverterForFormat(xmlConverter, "xml"); assertConverterForFormat(jsonConverter, ""); assertConverterForFormat(jsonConverter, null); assertConverterForFormat(jsonConverter, "ahhhh!"); }