@Test
void shouldNormalizePath() {

    WarningsPluginConfiguration configuration = createConfiguration();
    configuration.setSourceDirectories(
            Arrays.asList(new SourceDirectory("/absolute/unix"), new SourceDirectory("C:\\absolute\\windows")));
    String relativeUnix = "relative/unix";
    String relativeWindows = "relative\\windows";
    String absoluteUnix = "/absolute/unix";
    String absoluteWindows = "C:\\absolute\\windows";
    String absoluteWindowsNormalized = "C:/absolute/windows";
    assertThat(get(configuration, relativeUnix)).isEqualTo(getWorkspaceChild(relativeUnix));
    assertThat(get(configuration, relativeWindows)).isEqualTo(getWorkspaceChild(relativeWindows));
    assertThat(get(configuration, absoluteUnix)).isEqualTo(absoluteUnix);
    assertThat(get(configuration, absoluteWindows)).isEqualTo(normalize(absoluteWindows));
    assertThat(get(configuration, absoluteWindowsNormalized)).isEqualTo(absoluteWindowsNormalized);
}