### Question:
DatawaveKey { public boolean isInvalidKey() { return invalidKey; } DatawaveKey(Key key); DatawaveKey setReverse(final boolean isReverse); String getShardId(boolean ignore); String getShardId(); String getFieldName(boolean ignore); String getFieldName(); String getFieldValue(boolean ignore); String getFieldValue(); KeyType getType(); String getUid(); Text getRow(); long getTimeStamp(); String getDataType(); boolean isInvalidKey(); @Override String toString(); static final int NULL; static final Text DOCUMENT_COLUMN; static final byte[] DOCUMENT_COLUMN_BYTES; static final Text TF_COLUMN; static final byte[] TF_COLUMN_BYTES; static final Text FI_COLUMN; static final byte[] FI_COLUMN_BYTES; }### Answer:
@Test public void parseShardFiKeyInvalid() { Key testKey = new Key("row", "fi\u0000fieldNameA", "fieldValueA\u0000datatype", "viz"); DatawaveKey key = new DatawaveKey(testKey); Assert.assertTrue(key.isInvalidKey()); }