@Test
    void verifyWritePoint() {
        val factory = new InfluxDbConnectionFactory(casProperties.getEvents().getInfluxDb());
        val measurement = "events%s".formatted(RandomUtils.nextLong());
        factory.write(measurement,
            Map.of("number", 1234.5678, "flag", true, "name", "ApereoCAS"),
            Map.of("hostname", "cas.example.org"));
        val result = factory.query(measurement).toList();
        assertFalse(result.isEmpty());
        assertEquals(1, result.size());
        val first = result.getFirst();
        assertEquals("cas.example.org", first.getTag("hostname"));
        assertEquals(1234.5678, first.getFloatField("number"));
        assertEquals(true, first.getBooleanField("flag"));
        assertEquals("ApereoCAS", first.getStringField("name"));
        factory.close();
    }
This is {@link InfluxDbConnectionFactoryTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-influxdb-core/src/test/java/org/apereo/cas/influxdb/InfluxDbConnectionFactoryTests.java