public int getCurrentCount(String ip) {
        int index = 0;
        if (ip != null) {
            index = ip.hashCode() % slotCount;
        }
        if (index < 0) {
            index = -index;
        }
        return data[index].get();
    }
@Test
    void testGetCurrentCount() {
        SimpleIpFlowData simpleIpFlowData = new SimpleIpFlowData(3, 10000);
        simpleIpFlowData.incrementAndGet("127.0.0.1");
        simpleIpFlowData.incrementAndGet("127.0.0.1");
        simpleIpFlowData.incrementAndGet("127.0.0.1");
        assertEquals(3, simpleIpFlowData.getCurrentCount("127.0.0.1"));
        simpleIpFlowData.rotateSlot();
        assertEquals(0, simpleIpFlowData.getCurrentCount("127.0.0.1"));
        assertEquals(1, simpleIpFlowData.getAverageCount());
    }