@Test
public void testStripExtension() {

  final Object[][] testParameters =
      new Object[][] {{"HelloWorld.png", "HelloWorld"}, {"Hello.World.jpg", "Hello.World"}};
  assertNull(FilenameUtils.stripExtension(null));
  for (final Object[] testParameter : testParameters) {
    String expected = (String) testParameter[1];
    String filename = (String) testParameter[0];
    assertEquals(expected, FilenameUtils.stripExtension(filename));
  }
}