Path implements Serializable, Comparable<Path> { public String getMeasurement() { return measurement; } Path(); @SuppressWarnings("the path that wouldn't be split")  Path(String pathSc);  Path(String pathSc, boolean needSplit);  Path(String device, String measurement); String getFullPath(); String getDevice(); String getMeasurement(); String getFullPathWithAlias(); @Override int hashCode(); @Override boolean equals(Object obj); boolean equals(String obj); @Override int compareTo(Path path); @Override String toString(); @Override Path clone();  }
@Test(expected = IllegalArgumentException.class) public void testWrongPath() { Path c = new Path("root.\"sg\".\"d1\".\"s1\"\"", true); System.out.println(c.getMeasurement()); }