@Override
      public Optional<ExtendedCell> getLastKey() {
        if (splitPoint != null) {
          return Optional
            .of(ExtendedCellBuilderFactory.create(CellBuilderType.DEEP_COPY).setType(Cell.Type.Put)
              .setRow(Arrays.copyOf(splitPoint, splitPoint.length + 1)).build());
        } else {
          return Optional.empty();
        }
      }
A mock used so our tests don't deal with actual StoreFiles
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/MockHStoreFile.java