### Question:
RFC6838MediaRangeValidator implements MediaRangeValidator { @Override public void checkSuffix(final String suffix) { validateOtherChars(suffix,"suffix"); } RFC6838MediaRangeValidator(); @Override void checkType(final String type); @Override void checkSubType(final String subType); @Override void checkSuffix(final String suffix);  }### Answer:
@Test public void failsForSuffixWithInvalidOtherChar() throws Exception { try { sut.checkSuffix("invalidÓtherChar"); fail("Should fail suffix check if other char is not valid"); } catch (IllegalArgumentException e) { assertThat(e.getMessage(),equalTo("Invalid character 'Ó' in suffix 'invalidÓtherChar' at 7")); } }
@Test public void acceptsMinimalSuffix() { sut.checkSuffix("A"); }