Adding test case for Resources

This test case does not test it using Jersey, so it cannot mock http
layer. But it is good enough for now.