@Test
 public void testCanConvert() {
   assertThat(
       service.consumes(),
       is("application/vnd.openxmlformats-officedocument.wordprocessingml.document"));
   assertThat(Arrays.asList(service.produces()), hasItems("application/pdf"));
 }
  @Test
  public void testConvert() throws Exception {
    InputStream converted =
        service.convert(
            this.getClass().getResourceAsStream("/sample-docx2.docx"), "application/pdf");

    String content = pdfToText(converted);
    assertThat(
        content, is("This is the Document Title\n \nand this is the document body.\n \n \n"));
  }