* @throws Exception
*/
@Test
public void testCommonTdrRules() throws Exception{
// Add some tdr rules to a Policy and make sure they make it into the billing tdr
TdrGenerationRule genRule = getBasicTestRule();
// Add another kind of tdr
TdrGenerationRule quotaRule = new TdrGenerationRule();
TDRDataService.addNewTdrGenerationRule(exchange, quotaRule, "apiRateLimit");
// Add some rule that will apply to all TDRs
genRule.getStaticRules().add(TestHelper.getStaticRule("COMMON-STATIC", "COMMON-STATIC-VALUE", null));
exchange.getIn().setHeader("COMMON-DYN-HEAD", "COMMON-DYN-HEAD-VALUE");