@Test
public void testSeverityOverrides() {

    String config = "[{\"extension\": \"revapi.semver.ignore\", \"configuration\": {\"enabled\": true," +
            "\"versionIncreaseAllows\":{\"major\":\"potentiallyBreaking\",\"minor\":\"nonBreaking\",\"patch\": \"none\"}}}]";
    DifferenceTransform<?> tr = getTestTransform("0.0.0", "0.0.1", config);
    Assert.assertTrue(isBreaking(tr.transform(null, null, NON_BREAKING)));
    Assert.assertTrue(isBreaking(tr.transform(null, null, POTENTIALLY_BREAKING)));
    Assert.assertTrue(isBreaking(tr.transform(null, null, BREAKING)));
    tr = getTestTransform("0.0.0", "0.1.0", config);
    Assert.assertNull(tr.transform(null, null, NON_BREAKING));
    Assert.assertTrue(isBreaking(tr.transform(null, null, POTENTIALLY_BREAKING)));
    Assert.assertTrue(isBreaking(tr.transform(null, null, BREAKING)));
    tr = getTestTransform("0.0.0", "1.0.0", config);
    Assert.assertNull(tr.transform(null, null, NON_BREAKING));
    Assert.assertNull(tr.transform(null, null, POTENTIALLY_BREAKING));
    Assert.assertTrue(isBreaking(tr.transform(null, null, BREAKING)));
    tr = getTestTransform("1.0.0", "1.0.1", config);
    Assert.assertTrue(isBreaking(tr.transform(null, null, NON_BREAKING)));
    Assert.assertTrue(isBreaking(tr.transform(null, null, POTENTIALLY_BREAKING)));
    Assert.assertTrue(isBreaking(tr.transform(null, null, BREAKING)));
    tr = getTestTransform("1.0.0", "1.1.0", config);
    Assert.assertNull(tr.transform(null, null, NON_BREAKING));
    Assert.assertTrue(isBreaking(tr.transform(null, null, POTENTIALLY_BREAKING)));
    Assert.assertTrue(isBreaking(tr.transform(null, null, BREAKING)));
    tr = getTestTransform("1.0.0", "2.0.0", config);
    Assert.assertNull(tr.transform(null, null, NON_BREAKING));
    Assert.assertNull(tr.transform(null, null, POTENTIALLY_BREAKING));
    Assert.assertTrue(isBreaking(tr.transform(null, null, BREAKING)));
}