@Test
public void testGroupUndefinedEvent() throws Exception {

    CapacityGroupUndefinedEvent event = new CapacityGroupUndefinedEvent("myCapacityGroup", System.currentTimeMillis());
    String result = ResourceConsumptionLog.doLog(event);
    String expected = "Capacity group not defined: group=myCapacityGroup";
    assertThat(result).isEqualTo(expected);
}