### Question:
SimpleResourceIdSplitter implements ResourceIdSplitter { @Override public List<String> splitIdIntoElements(String id) { return s_pathSplitter.splitToList(id); }  @Override List<String> splitIdIntoElements(String id); @Override String joinElementsToId(List<String> elements);  }### Answer:
@Test public void noEscapeSupport() { List<String> els = Lists.newArrayList("a\\", "b"); assertThat(splitter.splitIdIntoElements("a\\:b"), is(els)); }
@Test public void canSplitIdIntoElements() { List<String> els = Lists.newArrayList("a", "b"); assertThat(splitter.splitIdIntoElements("a:b"), is(els)); assertThat(splitter.splitIdIntoElements("a::b"), is(els)); assertThat(splitter.splitIdIntoElements(" a : : b "), is(els)); els = Lists.newArrayList("a"); assertThat(splitter.splitIdIntoElements("a"), is(els)); els = Lists.newArrayList(); assertThat(splitter.splitIdIntoElements(""), is(els)); }