Assert.assertEquals("String", props.get("encProperty"));
}
@Test
public void canExport_property_toSystemProperties() throws Exception {
try (SystemPropertyTempSetter ts = new SystemPropertyTempSetter()) {
ts.setProperty("propYesSysYes", "p1");
ts.setProperty("propYesSysNo", "p2");
ts.setProperty("propNoSysYes", "p3");
ts.setProperty("propNoSysNo", "p4");
PropertiesMojo propertiesMojo = (PropertiesMojo) rule.configureMojo(new PropertiesMojo(), "ju-maven-plugin", new File("src/test/resources/test-poms/propertiesMojoTest-exportSystemProperty/pom.xml"));
propertiesMojo.execute();
// Check maven property export