@Override
    public double mean() {
        return lambda;
    }
@Test
    public void testMean() {
        System.out.println("mean");
        PoissonDistribution instance = new PoissonDistribution(3.5);
        instance.rand();
        assertEquals(3.5, instance.mean(), 1E-7);
    }