@Test
public void createStringExceptionMessageShouldbeGrammaticallyCorrect() {

    String pattern = "One = {0}";
    try {
        StringUtil.createString(pattern);
    } catch (IllegalArgumentException err) {
        assertThat(err.getMessage().startsWith("0 parameters supplied, but 1 parameter required"), is(true));
    }
    pattern = "One";
    try {
        StringUtil.createString(pattern, "one");
    } catch (IllegalArgumentException err) {
        assertThat(err.getMessage().startsWith("1 parameter supplied, but 0 parameters required"), is(true));
    }
    pattern = "One = {0}, Two = {1}";
    try {
        StringUtil.createString(pattern);
    } catch (IllegalArgumentException err) {
        assertThat(err.getMessage().startsWith("0 parameters supplied, but 2 parameters required"), is(true));
    }
}