@BeforeMethod
public void setup() throws Exception
{
context = new MapDiscoveryContext(new MockServiceDiscovery<Map<String, String>>(), new RandomStrategy<Map<String, String>>(), 1000);
serviceNamesMarshaller = new JsonServiceNamesMarshaller();
serviceInstanceMarshaller = new JsonServiceInstanceMarshaller<Map<String, String>>(context);
serviceInstancesMarshaller = new JsonServiceInstancesMarshaller<Map<String, String>>(context);
Application application = new DefaultResourceConfig()
{