@Test
public void badExtensions() {

    for (String ext: badExtensions) {
        try {
            FastaQueryService.parseExtension(ext);
            fail("Did not throw an exception at " + ext);
        } catch (BadRequestException e) {
            // Expected behaviour.
        }
    }
}