It probably is better to directly test the resource class i.e. by calling a method rather than starting a server. It will be quicker and will not do any different test.