@Test
public void testGetX509CertRecord() {

    Date now = new Date();
    long tstamp = mockNonNullableColumns(now);
    Mockito.doReturn(tstamp).when(item).getLong("lastNotifiedTime");
    Mockito.doReturn(tstamp).when(item).get("lastNotifiedTime");
    Mockito.doReturn("last-notified-server").when(item).getString("lastNotifiedServer");
    Mockito.doReturn(tstamp).when(item).getLong("expiryTime");
    Mockito.doReturn(tstamp).when(item).get("expiryTime");
    Mockito.doReturn("hostname").when(item).getString("hostName");
    DynamoDBCertRecordStoreConnection dbConn = getDBConnection();
    dbConn.setOperationTimeout(10);
    X509CertRecord certRecord = dbConn.getX509CertRecord("athenz.provider", "1234", "cn");
    assertNonNullableColumns(now, certRecord);
    assertEquals(certRecord.getLastNotifiedTime(), now);
    assertEquals(certRecord.getLastNotifiedServer(), "last-notified-server");
    assertEquals(certRecord.getExpiryTime(), now);
    assertEquals(certRecord.getHostName(), "hostname");
    dbConn.close();
}