AminoAcidFunctions { @Nullable public static String findAminoAcidForCodon(@NotNull String codon) { if (codon.length() != 3) { LOGGER.warn("Cannot look up amino acids for non-codons: {}", codon); return null; } for (Map.Entry<String, Set<String>> entrySet : AMINO_ACID_TO_TRINUCLEOTIDES_MAP.entrySet()) { if (entrySet.getValue().contains(codon)) { return entrySet.getKey(); } } return null; }  @Nullable static String findAminoAcidForCodon(@NotNull String codon); @NotNull static List<String> allTrinucleotidesForSameAminoAcid(@NotNull String trinucleotideToFind, @NotNull Strand strand); @NotNull static String forceSingleLetterProteinAnnotation(@NotNull String proteinAnnotation); @NotNull static String reverseAndFlip(@NotNull String string);  }
@Test public void canLookupAminoAcidForTrinucleotide() { assertEquals("E", AminoAcidFunctions.findAminoAcidForCodon("GAA")); assertNull(AminoAcidFunctions.findAminoAcidForCodon("TGA")); }