String ouput = new String(SYSTEM_OUT.toByteArray());
String[] outputLines = ouput.split("\n");
String vaultSharedKey = getStoredAttributeSharedKey(outputLines);
Assert.assertNotNull("VaultTool did not return a line starting with VAULT::", vaultSharedKey);
MockRuntimeVaultReader rvr = new MockRuntimeVaultReader();
Map<String, Object> options = generateVaultOptionsMap(testFallbackFromIncorrectPasswordValue);
rvr.createVault("", options);
String retrievedValueFromVault = rvr.retrieveFromVault(vaultSharedKey);
Assert.assertEquals("The value retrieved from vault is not the same as the one initially stored", VALUE_TO_STORE,
retrievedValueFromVault);
}