    @SuppressWarnings("unchecked")
    @Test
    public void testUnsignedZone() throws IOException {

        DnssecClient client = constructDnssecClient();
        applyZones(client,
                signedRootZone(
                        sign(rootKSK, "", rootPrivateKSK, algorithm,
                                record("", rootKSK),
                                record("", rootZSK)),
                        sign(rootZSK, "", rootPrivateZSK, algorithm,
                                record("com", ds("com", digestType, comKSK))),
                        sign(rootZSK, "", rootPrivateZSK, algorithm,
                                record("com", ns("ns.com"))),
                        sign(rootZSK, "", rootPrivateZSK, algorithm,
                                record("ns.com", a("1.1.1.1")))
                ), zone("com", "ns.com", "1.1.1.1",
                        record("example.com", a("1.1.1.2"))
                )
        );
        DnssecQueryResult result = client.queryDnssec("example.com", Record.TYPE.A);
        assertFalse(result.isAuthenticData());
        DnsMessage message = result.dnsQueryResult.response;
        checkCorrectExampleMessage(message);
    }