@Test
public void decode_unrecognisedEncoding() {

  // Create an invalid UTF-8 and ISO-88591-1 string by using 'é'.
  byte[] icyContent = "StreamTitle='tést';StreamURL='tést_url';".getBytes(UTF_16);
  Metadata metadata = decoder.decode(createMetadataInputBuffer(icyContent));
  assertThat(metadata.length()).isEqualTo(1);
  IcyInfo streamInfo = (IcyInfo) metadata.get(0);
  assertThat(streamInfo.rawMetadata).isEqualTo(icyContent);
  assertThat(streamInfo.title).isNull();
  assertThat(streamInfo.url).isNull();
}