    @Test
    public void testUpdate() {

        World world = new World();

        System.out.println("update()");
        Currency c = new Currency.Builder(world)
                .build();
        Generator g = new Generator.Builder(world)
                .generate(c)
                .build();
        g.upgrade();

        Automator a = new Automator.Builder(world)
                .automate(g)
                .every(1.0)
                .build();
        a.upgrade();

        world.update(1.0);
        assertEquals(1, g.getTimesProcessed());

        world.update(9.0);
        assertEquals(10, g.getTimesProcessed());
    }