@Test
public void testCapitalizeWithDelimiters_String() {

    assertEquals(null, capitalize(null, null));
    assertEquals("", capitalize("", new char[0]));
    assertEquals("  ", capitalize("  ", new char[0]));
    char[] chars = new char[]{'-', '+', ' ', '@'};
    assertEquals("I", capitalize("I", chars));
    assertEquals("I", capitalize("i", chars));
    assertEquals("I-Am Here+123", capitalize("i-am here+123", chars));
    assertEquals("I Am+Here-123", capitalize("I Am+Here-123", chars));
    assertEquals("I+Am-HERE 123", capitalize("i+am-HERE 123", chars));
    assertEquals("I-AM HERE+123", capitalize("I-AM HERE+123", chars));
    chars = new char[]{'.'};
    assertEquals("I aM.Fine", capitalize("i aM.fine", chars));
    assertEquals("I Am.fine", capitalize("i am.fine", null));
}