public static String getAlbumName(String name) {
    // if all characters were forbidden, the name can be empty
    if (name.equals("")) {
      return ALBUM_NAME_DEFAULT;
    }
    // . and .. are not valid names on filesystems
    if (name.equals(".") || name.equals("..")) {
      return ALBUM_NAME_DEFAULT + " " + name;
    }
    return name;
  }
@Test
  public void testGetAlbumName() {
    KoofrTransmogrificationConfig config = new KoofrTransmogrificationConfig();

    assertEquals("Valid name", config.getAlbumName("Valid name"));
    assertEquals("Album", config.getAlbumName(""));
    assertEquals("Album .", config.getAlbumName("."));
    assertEquals("Album ..", config.getAlbumName(".."));
  }