ResolutionProvider { public Resolution getResolution() { return resolutions.get(currentPosition); } ResolutionProvider(List<Graphics.DisplayMode> displayModes); Resolution increase(); Resolution getResolution();  }
@Test public void testGetResolution() { resolutionProvider = new ResolutionProvider(Arrays.asList(new TestDisplayMode(100, 50), new TestDisplayMode(200, 100))); assertResolution(resolutionProvider.getResolution(), 100, 50); resolutionProvider.increase(); assertResolution(resolutionProvider.getResolution(), 200, 100); }