  @Test
  public void deleteTest() throws Exception {

    when(mockConnector.createBatchWriter(TEST_TABLE, null)).thenReturn(mockWriter);
    BatchWriter writer = new EncryptedBatchWriter(mockConnector, TEST_TABLE, null, getConfig("encrypt-entry.ini"), KEYS);

    Mutation mutation = new Mutation("row".getBytes());
    mutation.putDelete("colF1".getBytes(), "colQ".getBytes());

    try {
      writer.addMutation(mutation);
      fail("encrypted deletes are not allowed on non-deterministically encrypted data");
    } catch (IllegalArgumentException e) { /* expected */}
  }