public void testSubstringThreeParamsWithStartBiggerThanLength() {
    String string = "abc";

    String substring = StringUtils.substring(string, string.length() + 2, string.length() * 2);
    Assert.assertEquals("", substring);

    substring = StringUtils.substring(string, string.length(), 2);
    Assert.assertEquals("", substring);
  }
  public void testSubstringWithNegativeStartBiggerThanLength() {
    String string = "abc";

    int start = string.length() + 1;
    int negative_start = -start;
    String substring = StringUtils.substring(string, negative_start);
    Assert.assertEquals(string, substring);
  }
 public void testDefaultStringWithNullStringAndGoodDefault() {
   String testDefault = "test Default";
   String s = StringUtils.defaultString(null, testDefault);
   Assert.assertEquals(testDefault, s);
 }
 public void testSubstringThreeParamsWithEndBiggerThanLength() {
   String string = "abc";
   String substring = StringUtils.substring(string, 2, string.length() + 1);
   Assert.assertEquals("c", substring);
 }
 public void testSubstringThreeParams() {
   String substring = StringUtils.substring("abc", 0, 2);
   Assert.assertEquals("ab", substring);
 }
 public void testSubstringThreeParamsWithZeroEnd() {
   String substring = StringUtils.substring("abc", 2, 0);
   Assert.assertEquals("", substring);
 }
 public void testSubstringThreeParamsWithEmptyString() {
   String substring = StringUtils.substring("", 1, 2);
   Assert.assertEquals("", substring);
 }
 public void testSubstringWithNullString() {
   String substring = StringUtils.substring(null, 1);
   Assert.assertNull(substring);
 }
 public void testSubstringWithNegativeStart() {
   String substring = StringUtils.substring("abc", -2);
   Assert.assertEquals("bc", substring);
 }
 public void testSubstring() {
   String substring = StringUtils.substring("abc", 2);
   Assert.assertEquals("c", substring);
 }
  public void testSubstringWithStartBiggerThanLength() {
    String string = "abc";

    String substring = StringUtils.substring(string, string.length() + 1);
    Assert.assertEquals("", substring);
  }
  public void testSubstringWithZeroStart() {
    String string = "abc";

    String substring = StringUtils.substring(string, 0);
    Assert.assertEquals(string, substring);
  }
 public void testSubstringWithEmptyString() {
   String substring = StringUtils.substring("", 1);
   Assert.assertEquals("", substring);
 }
 public void testDefaultStringWithNullStringAndNullDefault() {
   String s = StringUtils.defaultString(null, null);
   Assert.assertEquals(null, s);
 }
 public void testSubstringThreeParamsWithNullString() {
   String substring = StringUtils.substring(null, 1, 2);
   Assert.assertNull(substring);
 }
 public void testDefaultStringWithGoodStringAndGoodDefault() {
   String testString = "test string";
   String s = StringUtils.defaultString(testString, "test Default");
   Assert.assertEquals(testString, s);
 }
 public void testSubstringThreeParamsWithNegativeStartAndEnd() {
   String string = "abc";
   String substring = StringUtils.substring(string, -2, -1);
   Assert.assertEquals("b", substring);
 }