### Question:
AbstractVaultEngine implements SecretEngine { @Override public boolean isSecret(String secret) { VaultSecret vaultSecret = convertToVaultSecret(secret); return vaultSecret != null && vaultSecret.getEngineClass().equals(clazz().getCanonicalName()); }  @Override boolean isSecret(String secret); @Override String scarifySecret(String secret);  }### Answer:
@Test public void testIsSecretNotJson() { String secret = "secret"; Assert.assertFalse(underTest.isSecret(secret)); }
@Test public void testIsSecretEnginePathMissingg() { VaultSecret secret = new VaultSecret(null, "ec", "p"); Assert.assertFalse(underTest.isSecret(gson.toJson(secret))); }
@Test public void testIsSecretEngineClassMissing() { VaultSecret secret = new VaultSecret("ep", null, "p"); Assert.assertFalse(underTest.isSecret(gson.toJson(secret))); }
@Test public void testIsSecretPathMissing() { VaultSecret secret = new VaultSecret("ep", "com.sequenceiq.cloudbreak.service.secret.vault.VaultKvV1Engine", null); Assert.assertFalse(underTest.isSecret(gson.toJson(secret))); }
@Test public void testIsSecretClassDifferent() { VaultSecret secret = new VaultSecret("ep", "com.sequenceiq.cloudbreak.service.secret.vault.VaultKvV2Engine", "p"); Assert.assertFalse(underTest.isSecret(gson.toJson(secret))); }
@Test public void testIsSecretOk() { Assert.assertTrue(underTest.isSecret(gson.toJson(secret))); }