### Question:
StringSimpleFieldActions implements AtlasFieldAction { @AtlasActionProcessor public static String trimRight(TrimRight action, String input) { if (input == null || input.length() == 0) { return input; } int i = input.length() - 1; while (i >= 0 && Character.isWhitespace(input.charAt(i))) { i--; } return input.substring(0, i + 1); }  @AtlasActionProcessor static String capitalize(Capitalize action, String input); @AtlasActionProcessor static String fileExtension(FileExtension action, String input); @AtlasActionProcessor static String lowercase(Lowercase action, String input); @AtlasActionProcessor static Character lowercaseChar(LowercaseChar action, Character input); @AtlasActionProcessor static String normalize(Normalize action, String input); @AtlasActionProcessor static String removeFileExtension(RemoveFileExtension action, String input); @AtlasActionProcessor static String separateByDash(SeparateByDash action, String input); @AtlasActionProcessor static String separateByUnderscore(SeparateByUnderscore action, String input); @AtlasActionProcessor static String trim(Trim action, String input); @AtlasActionProcessor static String trimLeft(TrimLeft action, String input); @AtlasActionProcessor static String trimRight(TrimRight action, String input); @AtlasActionProcessor static String uppercase(Uppercase action, String input); @AtlasActionProcessor static Character uppercaseChar(UppercaseChar action, Character input); static final String STRING_SEPARATOR_REGEX; static final Pattern STRING_SEPARATOR_PATTERN; }### Answer:
@Test public void testTrimRight() { assertNull(StringSimpleFieldActions.trimRight(new TrimRight(), null)); assertEquals("", StringSimpleFieldActions.trimRight(new TrimRight(), "")); assertEquals(" foo", StringSimpleFieldActions.trimRight(new TrimRight(), " foo ")); assertEquals(" Foo", StringSimpleFieldActions.trimRight(new TrimRight(), " Foo")); assertEquals("fOo", StringSimpleFieldActions.trimRight(new TrimRight(), "fOo ")); assertEquals(" foO", StringSimpleFieldActions.trimRight(new TrimRight(), " foO ")); assertEquals("\t\n FOO", StringSimpleFieldActions.trimRight(new TrimRight(), "\t\n FOO")); assertEquals("\t\n FOO", StringSimpleFieldActions.trimRight(new TrimRight(), "\t\n FOO\f\r")); }