class Route53StepDefinitions {

    @Then("^assertFalse R53 failover from \"([^\"]*)\" to \"([^\"]*)\"$")
    public void assertFalseR53Failover(String primary, String secondary) throws Throwable {
        if (!isRegex(secondary)) {
            Assert.assertFalse("DNS Failover Check failed", DNSLookup.hostNameLookup(primary).equalsIgnoreCase(secondary));
        } else {
            Assert.assertFalse("DNS Failover Check failed", DNSLookup.hostNameLookup(primary).matches(secondary));
        }
    }

    public  Route53StepDefinitions();

}