public static Write write() {
    return new Write(null /* Configuration */, "");
  }
@Test
  public void testWritingFailsTableDoesNotExist() {
    final String table = tmpTable.getName();

    // Exception will be thrown by write.expand() when writeToDynamic is applied.
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage(String.format("Table %s does not exist", table));
    p.apply(Create.empty(HBaseMutationCoder.of()))
        .apply("write", HBaseIO.write().withConfiguration(conf).withTableId(table));
  }