JsonCredentialVersion extends CredentialVersion { @Override public String getCredentialType() { return delegate.getCredentialType(); } JsonCredentialVersion(final JsonCredentialVersionData delegate);  JsonCredentialVersion(final String name);  JsonCredentialVersion(final JsonCredentialValue jsonValue, final String name, final Encryptor encryptor); @Override String getCredentialType(); @Override void rotate(); @Override JsonNode getValue(); void setValue(final JsonNode value); @Override boolean matchesGenerationParameters(final GenerationParameters generationParameters); @Override GenerationParameters getGenerationParameters();  }
@Test public void getCredentialType_returnsCorrectType() { assertThat(subject.getCredentialType(), equalTo("json")); }