public static MapViewController create(MapView mapView, Model model) {
        MapViewController mapViewController = new MapViewController(mapView);

        model.mapViewPosition.addObserver(mapViewController);

        return mapViewController;
    }
@Test
    public void repaintTest() {
        DummyMapView dummyMapView = new DummyMapView();
        Model model = new Model();
        MapViewController.create(dummyMapView, model);
        Assert.assertEquals(0, dummyMapView.repaintCounter);

        model.mapViewPosition.setZoomLevel((byte) 1);
        // this does not hold with zoom animation
        // Assert.assertEquals(1, dummyMapView.repaintCounter);
    }