@Test
  public void testPixelInvadersAdvancedConfig() {
    Properties config = new Properties();
    config.put(ConfigConstant.PIXELINVADERS_ROW1, "ROTATE_180_FLIPPEDY,NO_ROTATE,NO_ROTATE");
    config.put(ConfigConstant.PIXELINVADERS_ROW2, "ROTATE_180_FLIPPEDY,NO_ROTATE,NO_ROTATE");
    config.put(ConfigConstant.PIXELINVADERS_PANEL_ORDER, "0,3,1,4,2,5");
    ApplicationConfigurationHelper ph = new ApplicationConfigurationHelper(config);

    assertEquals(6, ph.getNrOfScreens());
    assertEquals(8, ph.getDeviceXResolution());
    assertEquals(8, ph.getDeviceYResolution());

    List<ColorFormat> colorFormat = ph.getColorFormat();
    List<Integer> order = ph.getPanelOrder();
    List<DeviceConfig> displayOptions = ph.getLpdDevice();

    for (int ofs = 0; ofs < ph.getNrOfScreens(); ofs++) {
      int panelNr = order.get(ofs);
      System.out.println(
          "visual "
              + ofs
              + ", panel ofs: "
              + panelNr
              + ", layout: "
              + displayOptions.get(panelNr)
              + " colorformat: "
              + colorFormat.get(panelNr));
    }
  }
  @Test
  public void testRgbValue() {
    Properties config = new Properties();
    config.put(ConfigConstant.PIXELINVADERS_ROW1, "ROTATE_180,NO_ROTATE");
    config.put(ConfigConstant.CFG_PANEL_COLOR_ORDER, "RBG, BRG");
    ApplicationConfigurationHelper ph = new ApplicationConfigurationHelper(config);

    assertEquals(2, ph.getNrOfScreens());
    assertEquals(ColorFormat.RBG, ph.getColorFormat().get(0));
    assertEquals(ColorFormat.BRG, ph.getColorFormat().get(1));
  }
  @Test
  public void testPixelInvadersDefaultConfig() {
    Properties config = new Properties();
    config.put(ConfigConstant.PIXELINVADERS_ROW1, "ROTATE_180,NO_ROTATE");
    config.put(ConfigConstant.PIXELINVADERS_ROW2, "ROTATE_90,NO_ROTATE");
    ApplicationConfigurationHelper ph = new ApplicationConfigurationHelper(config);

    List<Integer> order = ph.getPanelOrder();
    assertEquals(Integer.valueOf(0), order.get(0));
    assertEquals(Integer.valueOf(1), order.get(1));
    assertEquals(Integer.valueOf(2), order.get(2));
    assertEquals(Integer.valueOf(3), order.get(3));

    List<ColorFormat> colorFormat = ph.getColorFormat();
    assertEquals(ColorFormat.RGB, colorFormat.get(0));
    assertEquals(ColorFormat.RGB, colorFormat.get(1));
    assertEquals(ColorFormat.RGB, colorFormat.get(2));
    assertEquals(ColorFormat.RGB, colorFormat.get(3));
  }