@Test
  public void testConfigFileWithOnlyServerList() {
    final String fullLocationFileWithList =
        ClassLoader.getSystemResource(testFileWithOnlyServerList).getFile();

    final ConfigurationManager protexCM =
        new TestConfigurationManagerBean(fullLocationFileWithList);

    final ServerBean protexServerBean = protexCM.getServerBean(protex);
    Assert.assertEquals("bla_protex", protexServerBean.getServerName());
  }
  /**
   * Tests to make sure that the list is parsed and the server bean is correct The list specified is
   * the /server/test_server_config.xml
   */
  @Test
  public void testConfigFileWithServerListAndOldConfig() {
    final String fullLocationFileWithList =
        ClassLoader.getSystemResource(testFileWithServerList).getFile();

    final ConfigurationManager cm = new TestConfigurationManagerBean(fullLocationFileWithList);

    final ServerBean protexServerBean = cm.getServerBean(protex);
    final ServerBean ccServerBean = cm.getServerBean(cc);

    Assert.assertEquals("bla_protex", protexServerBean.getServerName());
    Assert.assertEquals("bla_codecenter", ccServerBean.getServerName());
  }
  /** Test getters for common required props. */
  @Test
  public void testGettersForCommonRequiredProps() {
    final ServerBean protexBean = configurationManager.getServerBean(protex);
    final String protexServerName = protexBean.getServerName();
    final String protexUser = protexBean.getUserName();
    final String protexPass = protexBean.getPassword();

    final ServerBean ccBean = configurationManager.getServerBean(cc);
    final String ccServerName = ccBean.getServerName();
    final String ccUser = ccBean.getUserName();
    final String ccPass = ccBean.getPassword();

    Assert.assertEquals("myserver", protexServerName);
    Assert.assertEquals("userName", protexUser);
    Assert.assertEquals("blackDuck", protexPass);

    Assert.assertEquals("cc_server", ccServerName);
    Assert.assertEquals("cc_user", ccUser);
    Assert.assertEquals("cc_password", ccPass);
  }