@Test
  public void itReturnsEpisodeRepresentation() {
    Episode episode =
        new Episode() {
          @Override
          public String getTitle() {
            return "Newest episode";
          }

          @Override
          public Feed getFeed() {
            return new Feed() {
              @Override
              public String getId() {
                return "123";
              }

              @Override
              public String getTitle() {
                return "Awesome podcast";
              }
            };
          }

          @Override
          public Audio getAudio() {
            return new Audio() {
              @Override
              public String getUrl() {
                return "audio.mp3";
              }
            };
          }
        };

    String episodeRepresentation =
        format(
            "{ \"title\": %s, \"audioFilePath\": %s, \"feed\": { \"id\": %s, \"title\": %s } }",
            episode.getTitle(),
            episode.getAudioFilePath(),
            episode.getFeed().getId(),
            episode.getFeed().getTitle());

    assertThat(episode.toString(), is(episodeRepresentation));
  }
  @Test
  public void itReturnsAudioFilePath() {
    Episode episode =
        new Episode() {
          @Override
          public String getTitle() {
            return "Newest episode";
          }

          @Override
          public Feed getFeed() {
            return new Feed() {
              @Override
              public String getId() {
                return "123";
              }

              @Override
              public String getTitle() {
                return "Awesome podcast";
              }
            };
          }

          @Override
          public Audio getAudio() {
            return new Audio() {
              @Override
              public String getUrl() {
                return "audio.mp3";
              }
            };
          }
        };

    assertThat(
        episode.getAudioFilePath(),
        is(episode.getFeed().getId() + "/" + episode.getTitle() + ".mp3"));
  }