### Question:
KeyValueOperationsDelegate { Versioned.Metadata set(HashicorpSetSecretData setSecretData) { return keyValueOperations.put(setSecretData.getSecretName(), setSecretData.getNameValuePairs()); } KeyValueOperationsDelegate(VaultVersionedKeyValueOperations keyValueOperations);   }### Answer:
@Test public void set() { String secretName = "secretName"; HashicorpSetSecretData setSecretData = mock(HashicorpSetSecretData.class); when(setSecretData.getSecretName()).thenReturn(secretName); Map nameValuePairs = mock(Map.class); when(setSecretData.getNameValuePairs()).thenReturn(nameValuePairs); Versioned.Metadata metadata = mock(Versioned.Metadata.class); when(keyValueOperations.put(secretName, nameValuePairs)).thenReturn(metadata); Versioned.Metadata result = delegate.set(setSecretData); verify(keyValueOperations).put(secretName, nameValuePairs); assertThat(result).isEqualTo(metadata); }