Buggy code:
public class TestServiceTestsAsync extends ApplicationTestCase < Application > { public TestServiceTestsAsync ( ) { } AndroidServiceClient client = new AndroidServiceClient ( "http:////test.servicestack.net" ) ; public void test_does_fire_Request_and_Response_Filters_Async ( ) throws InterruptedException { } public void test_Can_POST_Test_HelloAllTypes_async ( ) throws InterruptedException { } public void test_Can_PUT_Test_HelloAllTypes_async ( ) throws InterruptedException { } public void test_Does_handle_404_Error_Async ( ) throws InterruptedException { AndroidServiceClient testClient = new AndroidServiceClient ( "http:////test.servicestack.net" ) ; final Exception [ ] globalError = new Exception [ 1 ] ; final Exception [ ] localError = new Exception [ 1 ] ; final WebServiceException [ ] thrownError = new WebServiceException [ ] { null } ; AndroidServiceClient . GlobalExceptionFilter = new ExceptionFilter ( ) { @ Override public void exec ( HttpURLConnection res , Exception ex ) { globalError [ 0 ] = ex ; } } ; testClient . ExceptionFilter = new ExceptionFilter ( ) { @ Override public void exec ( HttpURLConnection res , Exception ex ) { localError [ 0 ] = ex ; } } ; ThrowType request = new ThrowType ( ) . setType ( "NotFound" ) . setMessage ( "not<seq2seq4repair_space>here" ) ; final CountDownLatch signal = new CountDownLatch ( 1 ) ; testClient . putAsync ( request , new net . servicestack . client . AsyncResult < ThrowTypeResponse > ( ) { @ Override public void success ( ThrowTypeResponse response ) { fail ( "should<seq2seq4repair_space>not<seq2seq4repair_space>succeed" ) ; } @ Override public void error ( Exception ex ) { thrownError [ 0 ] = ( ( WebServiceException ) ( ex ) ) ; } @ Override public void complete ( ) { signal . countDown ( ) ; } } ) ; assertTrue ( signal . await ( 5 , TimeUnit . SECONDS ) ) ; assertNotNull ( globalError [ 0 ] ) ; assertNotNull ( localError [ 0 ] ) ; assertNotNull ( thrownError [ 0 ] ) ; ResponseStatus status = thrownError [ 0 ] . getResponseStatus ( ) ; <START_BUG> assertEquals ( "not<seq2seq4repair_space>here" , status . getErrorCode ( ) ) ; <END_BUG> assertEquals ( "not<seq2seq4repair_space>here" , status . getMessage ( ) ) ; assertNotNull ( status . getStackTrace ( ) ) ; } public void test_Does_handle_ValidationException_Async ( ) { } public void test_Can_send_ReturnVoid_Async ( ) { } public void test_Can_delete_ReturnVoid_Async ( ) { } public static HelloAllTypes createHelloAllTypes ( ) { } public static void assertHelloAllTypesResponse ( HelloAllTypesResponse actual , HelloAllTypes expected ) { } public static AllTypes createAllTypes ( ) { } public static AllCollectionTypes createAllCollectionTypes ( ) { } public static Poco createPoco ( String name ) { } public static void assertAllTypes ( AllTypes actual , AllTypes expected ) { } public static void assertAllCollectionTypes ( AllCollectionTypes actual , AllCollectionTypes expected ) { } public static void assertPocoEquals ( List < Poco > expected , List < Poco > actual ) { } public static void assertPocoLookupEquals ( HashMap < String , ArrayList < Poco > > expected , HashMap < String , ArrayList < Poco > > actual ) { } public static void assertPocoLookupMapEquals ( HashMap < String , ArrayList < HashMap < String , Poco > > > expected , HashMap < String , ArrayList < HashMap < String , Poco > > > actual ) { } public static void assertPocoEquals ( ArrayList < HashMap < String , Poco > > expected , ArrayList < HashMap < String , Poco > > actual ) { } public static void assertPocoEquals ( HashMap < String , Poco > expected , HashMap < String , Poco > actual ) { } public static void assertPocoEquals ( Poco expected , Poco actual ) { } No newline ; at end ; of file ; }

Fix:
assertEquals ( "NotFound" , status . getErrorCode ( ) ) ;