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