@Test
public void testPrintVault() {
final String linebreak = System.getProperty("line.separator");
final ByteArrayOutputStream out = new ByteArrayOutputStream();
final DescribeVaultResult describeVaultResult = new DescribeVaultResult();
describeVaultResult.setCreationDate(CREATION_DATE);
describeVaultResult.setLastInventoryDate(INVENTORY_DATE);
describeVaultResult.setNumberOfArchives(NUMBER_OF_ARCHIVES);
describeVaultResult.setSizeInBytes(SIZE_IN_BYTES);
describeVaultResult.setVaultARN(ARN);
describeVaultResult.setVaultName(VAULT_NAME);
new VaultPrinter().printVault(describeVaultResult, out);
assertEquals("CreationDate:\t" + CREATION_DATE + linebreak + "LastInventoryDate:\t" + INVENTORY_DATE + linebreak
+ "NumberOfArchives:\t" + NUMBER_OF_ARCHIVES + linebreak + "SizeInBytes:\t\t" + SIZE_IN_BYTES + linebreak
+ "VaultARN:\t\t" + ARN + linebreak + "VaultName:\t\t" + VAULT_NAME + linebreak, out.toString());
}