### Question:
AbstractBundleResourceProvider extends AbstractUntypedResourceProvider { @Nonnull protected String getStatus( @Nonnull FhirOperationResult result ) { final String statusMessage; switch ( result.getStatusCode() ) { case FhirOperationResult.OK_STATUS_CODE: statusMessage = "OK"; break; case FhirOperationResult.NO_CONTENT_STATUS_CODE: statusMessage = "No content"; break; case FhirOperationResult.CREATED_STATUS_CODE: statusMessage = "Created"; break; case FhirOperationResult.BAD_REQUEST_STATUS_CODE: statusMessage = "Bad request"; break; case FhirOperationResult.UNAUTHORIZED_STATUS_CODE: statusMessage = "Unauthorized"; break; case FhirOperationResult.FORBIDDEN_STATUS_CODE: statusMessage = "Forbidden"; break; case FhirOperationResult.NOT_FOUND_STATUS_CODE: statusMessage = "Not found"; break; case FhirOperationResult.UNPROCESSABLE_ENTITY_STATUS_CODE: statusMessage = "Unprocessable entity"; break; case FhirOperationResult.INTERNAL_SERVER_ERROR_STATUS_CODE: statusMessage = "Internal server error"; break; default: statusMessage = "Unknown"; } return result.getStatusCode() + " " + statusMessage; } AbstractBundleResourceProvider(
        @Nonnull FhirClientResourceRepository fhirClientResourceRepository,
        @Nonnull FhirClientSystemRepository fhirClientSystemRepository,
        @Nonnull FhirRepository fhirRepository, @Nonnull DhisRepository dhisRepository,
        @Nonnull RequestCacheService requestCacheService );   }### Answer:
@Test public void getStatusCodeOk() { Assert.assertEquals( "200 OK", bundleResourceProvider.getStatus( new FhirOperationResult( FhirOperationResult.OK_STATUS_CODE ) ) ); }
@Test public void getStatusCodeCreated() { Assert.assertEquals( "201 Created", bundleResourceProvider.getStatus( new FhirOperationResult( FhirOperationResult.CREATED_STATUS_CODE ) ) ); }
@Test public void getStatusCodeBadRequest() { Assert.assertEquals( "400 Bad request", bundleResourceProvider.getStatus( new FhirOperationResult( FhirOperationResult.BAD_REQUEST_STATUS_CODE ) ) ); }
@Test public void getStatusCodeUnauthorized() { Assert.assertEquals( "401 Unauthorized", bundleResourceProvider.getStatus( new FhirOperationResult( FhirOperationResult.UNAUTHORIZED_STATUS_CODE ) ) ); }
@Test public void getStatusCodeForbidden() { Assert.assertEquals( "403 Forbidden", bundleResourceProvider.getStatus( new FhirOperationResult( FhirOperationResult.FORBIDDEN_STATUS_CODE ) ) ); }
@Test public void getStatusCodeNotFound() { Assert.assertEquals( "404 Not found", bundleResourceProvider.getStatus( new FhirOperationResult( FhirOperationResult.NOT_FOUND_STATUS_CODE ) ) ); }
@Test public void getStatusCodeInternalServerError() { Assert.assertEquals( "500 Internal server error", bundleResourceProvider.getStatus( new FhirOperationResult( FhirOperationResult.INTERNAL_SERVER_ERROR_STATUS_CODE ) ) ); }
@Test public void getStatusCodeUnknown() { Assert.assertEquals( "533 Unknown", bundleResourceProvider.getStatus( new FhirOperationResult( 533 ) ) ); }