### Question:
SecureDESKey extends SecureVariantKey { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<secure-des-key"); p.print(" length=\"" + getKeyLength() + "\""); p.print(" type=\"" + keyType + "\""); p.print(" variant=\"" + getVariant() + "\""); p.print(" scheme=\"" + this.getScheme() + "\""); if (keyName != null) p.print(" name=\"" + keyName + "\""); p.println(">"); p.println(inner + "<data>" + ISOUtil.hexString(getKeyBytes()) + "</data>"); p.println(inner + "<check-value>" + ISOUtil.hexString(getKeyCheckValue()) + "</check-value>"); p.println(indent + "</secure-des-key>"); } SecureDESKey();  SecureDESKey(short keyLength, String keyType, byte variant, KeyScheme scheme, byte[] keyBytes,
            byte[] keyCheckValue);  SecureDESKey(short keyLength, String keyType, byte[] keyBytes,
            byte[] keyCheckValue);  SecureDESKey(short keyLength, String keyType, String keyHexString,
            String keyCheckValueHexString);  SecureDESKey(short keyLength, String keyType, byte variant, KeyScheme scheme, String keyHexString,
            String keyCheckValueHexString); @Override byte getVariant(); @Override KeyScheme getScheme(); @Override void dump(PrintStream p, String indent);  }### Answer:
@Test public void testDump() throws Throwable { byte[] keyBytes = new byte[1]; PrintStream p = new PrintStream(new ByteArrayOutputStream()); new SecureDESKey(length, keyType, keyBytes, kcv).dump(p, "testIndent"); assertTrue(true, "Test completed without Exception"); }
@Test public void testDumpThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { PrintStream p = new PrintStream(new ByteArrayOutputStream()); new SecureDESKey(length, keyType, null, kcv1).dump(p, ""); }); }
@Test public void testDumpThrowsNullPointerException1() throws Throwable { assertThrows(NullPointerException.class, () -> { byte[] keyBytes = new byte[2]; new SecureDESKey(length, keyType, keyBytes, kcv).dump(null, ""); }); }