@Test(expectedExceptions = TransformationDefinitionException.class, expectedExceptionsMessageRegExp = "Line number cannot be negative or zero")
public void invalidLineNumberTest1() {

    InsertLine insertLine = new InsertLine("   color: yellow").relative("/src/main/resources/dogs.yaml");
    insertLine.setLineNumber(-1);
}