@Override
  public File newFile() {
    return newFile(null, null);
  }
@Test
  public void newFile_throws_ISE_if_name_is_not_valid() throws Exception {
    File rootTempFolder = temp.newFolder();
    DefaultTempFolder underTest = new DefaultTempFolder(rootTempFolder);

    assertThatThrownBy(() -> underTest.newFile(tooLong.toString(), ".txt"))
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("Failed to create temp file");
  }