@Test
public void testSetLogMessageFormat() {

    // do setup.
    testTarget.setLogMessageFormat("logId:{0}\tlogMessage:{1}");
    String code = "exceptionCode";
    String message = "exceptionMessage";
    // do test.
    String actualLogMessage = testTarget.formatLogMessage(code, message);
    // do assert.
    String expectedLogMessage = "logId:exceptionCode\tlogMessage:exceptionMessage";
    assertThat(actualLogMessage, is(expectedLogMessage));
}