void () { myMappingSettings.addMappingCheckUnique("C:/testPrj/src/test/", "/web-project/"); myMappingSettings.addMappingCheckUnique("C:/testPrj/src/test", "/web-project/"); myMappingSettings.addMappingCheckUnique("C:/testPrj/src/test/", "/web-project"); myMappingSettings.addMappingCheckUnique("C:/testPrj/src/test", "/web-project"); Assert.assertEquals(Collections.singletonList(new PathMappingSettings.PathMapping("C:/testPrj/src/test", "/web-project")), myMappingSettings.getPathMappings()); }