@Test
public void testValidateFileInfoNameThrowsForIllegalChars() throws B2BadRequestException {

    final String nameWithIllegalChars = "my-header<>illegalChars()@";
    thrown.expect(B2BadRequestException.class);
    thrown.expectMessage("Illegal file info name: " + nameWithIllegalChars);
    webifier.validateFileInfoName(nameWithIllegalChars);
}