source: class MavenProxyServerConfigurationTest {
  
  	@TempDir
  	static Path tempDirectory;
  	private static Path sampleConfigFile;
  
  	@Test
  	@DisplayName("Parses sample-proxy-config.yaml correctly")
  	public void parsesSampleConfigCorrectly() throws Exception {
  
target: 		MavenProxyServerConfiguration proxyServerConfiguration = MavenProxyServerConfiguration.loadFromFile(sampleConfigFile);
  		assertNotNull(proxyServerConfiguration);
  
  		assertNotNull(proxyServerConfiguration.mavenRepositories);
  		assertEquals(1, proxyServerConfiguration.mavenRepositories.size());
  
  		MavenRepository server1 = proxyServerConfiguration.mavenRepositories.get("server1");
  		assertNotNull(server1);
  		assertEquals("https://my.maven.server", server1.url);
  	}
  
  }