@Test
public void transformsObjectToStringWithToStringMethodWhenHeaderDelegateDoesNotPresent() throws Exception {

    RuntimeDelegate runtimeDelegate = mock(RuntimeDelegate.class);
    RuntimeDelegate.setInstance(runtimeDelegate);
    Object someObject = mock(Object.class);
    when(someObject.toString()).thenReturn("<foo>");
    assertEquals("<foo>", HeaderHelper.getHeaderAsString(someObject));
}