@Test
public void testMap() {

    VectorGeneratorsFamily family = new VectorGeneratorsFamily.Builder()
        .add(() -> VectorUtils.of(1., 2.))
        .map(g -> g.move(VectorUtils.of(1, -1)))
        .build(0L);
    assertArrayEquals(new double[] {2., 1.}, family.get().asArray(), 1e-7);
}