### Question:
PluginArrayHttpMessageConverter implements HttpMessageConverter<Plugin[]> { @Override public void write(Plugin[] t, String contentType, HttpOutputMessage outputMessage) throws IOException { throw new UnsupportedOperationException(); }  @Override boolean canRead(Class<?> clazz); @Override boolean canWrite(Class<?> clazz); @Override Plugin[] read(Class<? extends Plugin[]> clazz, HttpInputMessage inputMessage); @Override void write(Plugin[] t, String contentType, HttpOutputMessage outputMessage);  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void write() throws Exception { converter.write(new Plugin[] {}, null, null); }