PcjTableNameFactory { public String getPcjId(final String pcjTableName) { requireNonNull(pcjTableName); return pcjTableName.split("INDEX_")[1]; }  String makeTableName(final String ryaInstance, final String pcjId); String getPcjId(final String pcjTableName);  }
@Test public void getPcjId() { final String pcjTableName = "testInstance_INDEX_2dda1b099d264f16b1da8f9409c104d3"; final PcjTableNameFactory factory = new PcjTableNameFactory(); final String pcjId = factory.getPcjId(pcjTableName); assertEquals("2dda1b099d264f16b1da8f9409c104d3", pcjId); }