@Test
public void testGetFilename() {

  final Object[][] testParameters =
      new Object[][] {{"/tester.jpg", "tester.jpg"}, {"/Users/admin/admin.jpg", "admin.jpg"},
          {"/Users/tester/alphatester/../../admin.jpg", "admin.jpg"},
          {"/Users/tester/betatester/../../tester.jpg", "tester.jpg"}};
  assertNull(FilepathUtils.getFilename(null));
  for (final Object[] testParameter : testParameters) {
    String expected = (String) testParameter[1];
    String path = (String) testParameter[0];
    assertEquals(expected, FilepathUtils.getFilename(path));
  }
}