@Test
public void testCodeForSymbol() {

    assertEquals(ResourceException.codeForSymbol("ok"), 200);
    assertEquals(ResourceException.codeForSymbol("CREATED"), 201);
    assertEquals(ResourceException.codeForSymbol("ACCEPTED"), 202);
    assertEquals(ResourceException.codeForSymbol("NO_CONTENT"), 204);
    assertEquals(ResourceException.codeForSymbol("MOVED_PERMANENTLY"), 301);
    assertEquals(ResourceException.codeForSymbol("FOUND"), 302);
    assertEquals(ResourceException.codeForSymbol("SEE_OTHER"), 303);
    assertEquals(ResourceException.codeForSymbol("NOT_MODIFIED"), 304);
    assertEquals(ResourceException.codeForSymbol("TEMPORARY_REDIRECT"), 307);
    assertEquals(ResourceException.codeForSymbol("BAD_REQUEST"), 400);
    assertEquals(ResourceException.codeForSymbol("FORBIDDEN"), 403);
    assertEquals(ResourceException.codeForSymbol("UNAUTHORIZED"), 401);
    assertEquals(ResourceException.codeForSymbol("NOT_FOUND"), 404);
    assertEquals(ResourceException.codeForSymbol("CONFLICT"), 409);
    assertEquals(ResourceException.codeForSymbol("GONE"), 410);
    assertEquals(ResourceException.codeForSymbol("PRECONDITION_FAILED"), 412);
    assertEquals(ResourceException.codeForSymbol("UNSUPPORTED_MEDIA_TYPE"), 415);
    assertEquals(ResourceException.codeForSymbol("INTERNAL_SERVER_ERROR"), 500);
    assertEquals(ResourceException.codeForSymbol("NOT_IMPLEMENTED"), 501);
    assertEquals(ResourceException.codeForSymbol("SERVICE_UNAVAILABLE"), 503);
    assertEquals(ResourceException.codeForSymbol("UNAUTHORIZED"), 401);
    assertEquals(ResourceException.codeForSymbol("1111"), 1111);
    assertEquals(ResourceException.codeForSymbol("abc"), 0);
}