@Test
public void removeOptionalTest() throws IOException, XmlPullParserException {

    PomChangeDependency uut = new PomChangeDependency("commons-io", "commons-io").relative("pom.xml").removeOptional();
    assertTrue(getDependencyBeforeChange(uut).isOptional());
    executeAndAssertSuccess(uut);
    assertFalse(getDependencyAfterChange(uut).isOptional());
}