@Test
public void testGroupRemovedEvent() throws Exception {

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