@Test
public void validIntStringValue() {

    Mockito.when(headerDefinition.getJavaType()).thenReturn(int.class);
    final String value = String.valueOf(42);
    try {
        underTest.accept(headerDefinition, value);
    } catch (final Throwable t) {
        fail(value + " is a valid int representation!");
    }
}