IngressPathTransformInverter { public String undoPathTransformation(String path) { Matcher matcher = pathTransformInverse.matcher(path); if (matcher.matches()) { return matcher.group(1); } else { return path; } } @Inject  IngressPathTransformInverter(
      @Nullable @Named("che.infra.kubernetes.ingress.path_transform") String pathTransformFmt); String undoPathTransformation(String path);  }
@Test(dataProvider = "transformationTestCases") public void testUndoPathTransformationWithBasicTransform( String format, String transformedPath, String originalPath) { IngressPathTransformInverter inverter = new IngressPathTransformInverter(format); assertEquals(inverter.undoPathTransformation(transformedPath), originalPath); }