ValueCredentialVersion extends CredentialVersion { @Override public String getCredentialType() { return delegate.getCredentialType(); } ValueCredentialVersion(final ValueCredentialVersionData delegate);  ValueCredentialVersion(final String name);  ValueCredentialVersion();  ValueCredentialVersion(final StringCredentialValue value, final Encryptor encryptor); @Override void setValue(final String value); @Override boolean matchesGenerationParameters(final GenerationParameters generationParameters); @Override String getCredentialType(); @Override void rotate(); @Override GenerationParameters getGenerationParameters();  }
@Test public void getCredentialType_returnsCorrectType() { assertThat(subject.getCredentialType(), equalTo("value")); }