public static DwrfTableEncryptionProperties forTable(String encryptTable, String encryptionAlgorithm, String encryptionProvider)
    {
        return new DwrfTableEncryptionProperties(Optional.of(encryptTable), Optional.empty(), encryptionAlgorithm, encryptionProvider);
    }
@Test
    public void testEncryptTable()
    {
        DwrfTableEncryptionProperties properties = forTable("abcd", "test_algo", "test_prov");

        assertEquals(properties.toHiveProperties(), ImmutableMap.of(
                ENCRYPT_TABLE_KEY, "abcd",
                DWRF_ENCRYPTION_PROVIDER_KEY, "test_prov",
                DWRF_ENCRYPTION_ALGORITHM_KEY, "test_algo"));

        assertEquals(properties.toTableProperties(), ImmutableMap.of(
                ENCRYPT_TABLE, "abcd",
                DWRF_ENCRYPTION_PROVIDER, "test_prov",
                DWRF_ENCRYPTION_ALGORITHM, "test_algo"));
    }