@SuppressWarnings("null")
    @Override
    public void prePut(final ObserverContext<? extends RegionCoprocessorEnvironment> c,
      final Put put, final WALEdit edit, final Durability durability) {
      String tableName =
        c.getEnvironment().getRegion().getRegionInfo().getTable().getNameAsString();
      if (tableName.equals("observed_table")) {
        // Trigger a NPE to fail the coprocessor
        Integer i = null;
        i = i + 1;
      }
    }
Tests unhandled exceptions thrown by coprocessors running on a regionserver.. Expected result is
that the regionserver will abort with an informative error message describing the set of its
loaded coprocessors for crash diagnosis. (HBASE-4014).
hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithAbort.java