Add MessageContext tests.
Throw IllegalArgumentException if the resrouces is not found.