@Test(expected = RuntimeException.class)
public void testLocalizedSamplingStrategyWithOneRuleMissingAttributesThrowsRuntimeException() {

    URL emptySamplingRules = LocalizedSamplingStrategyTest.class.getResource(
        "/com/amazonaws/xray/strategy/sampling/OneRuleMissingAttributesSamplingRules.json");
    LocalizedSamplingStrategy localizedSamplingStrategy = new LocalizedSamplingStrategy(emptySamplingRules);
    SamplingRequest samplingRequest = new SamplingRequest("", "test", "/test", "test", "");
    SamplingResponse sr = localizedSamplingStrategy.shouldTrace(samplingRequest);
    Assert.assertFalse(sr.isSampled());
}