### Question:
Messages { public static String getErrorString( final String key ) { return MessageUtil.formatErrorMessage( key, Messages.getString( key ) ); }  static String getString( final String key ); static String getString( final String key, final String param1 ); static String getString( final String key, final String param1, final String param2 ); static String getString( final String key, final String param1, final String param2, final String param3 ); static String getString( final String key, final String param1, final String param2, final String param3,
                                  final String param4 ); static String getString( final String key, final String param1, final String param2, final String param3,
                                  final String param4, final String param5 ); static String getErrorString( final String key ); static String getErrorString( final String key, final String param1 ); static String getErrorString( final String key, final String param1, final String param2 ); static String getErrorString( final String key, final String param1, final String param2,
                                       final String param3 );  }### Answer:
@Test public void testGetErrorString() throws Exception { assertEquals( "test.noParams - Test message", Messages.getErrorString( "test.noParams" ) ); }
@Test public void testGetErrorString_1param() throws Exception { assertEquals( "test.oneParam - Test HELLO param", Messages.getErrorString( "test.oneParam", "HELLO" ) ); }
@Test public void testGetErrorString_2params() throws Exception { assertEquals( "test.twoParams - Test ONE, TWO params", Messages.getErrorString( "test.twoParams", "ONE", "TWO" ) ); }
@Test public void testGetErrorString_3params() throws Exception { assertEquals( "test.threeParams - Test ONE, TWO, THREE params", Messages.getErrorString( "test.threeParams", "ONE", "TWO", "THREE" ) ); }