@Test
public void testGetBetween() {

    Assert.assertEquals(TStringUtil.getBetween("wx[ b ]yz", "[", "]"), "b");
    Assert.assertEquals(TStringUtil.getBetween(null, "a", "a"), null);
    Assert.assertEquals(TStringUtil.getBetween("abc", null, "a"), null);
    Assert.assertEquals(TStringUtil.getBetween("abc", "a", null), null);
    Assert.assertEquals(TStringUtil.getBetween("", "", ""), "");
    Assert.assertEquals(TStringUtil.getBetween("", "", "]"), null);
    Assert.assertEquals(TStringUtil.getBetween("", "[", "]"), null);
    Assert.assertEquals(TStringUtil.getBetween("yabcz", "", ""), "");
    Assert.assertEquals(TStringUtil.getBetween("yabcz", "y", "z"), "abc");
    Assert.assertEquals(TStringUtil.getBetween("yabczyabcz", "y", "z"), "abc");
}