protected boolean hasFields(String... mandatoryFields) {
        return hasFields(object, mandatoryFields);
    }
@Test
    public void hasFields() {
        assertTrue("does not have mandatory field",
                cfg.hasFields(TEXT, LONG, DOUBLE, MAC));
        assertTrue("did not detect missing field",
                expectInvalidField(() -> cfg.hasFields("none")));
    }