getComponentManager().unregisterComponent(Macro.class, "mytestmacro2");
}
@Test
public void testGetMacroIdsWithSyntaxSpecificMacros() throws Exception
{
<BUG>final Macro mockMacro = context.mock(Macro.class);
this.context.checking(new Expectations(){{
</BUG>
allowing(mockMacro).getDescriptor();
will(returnValue(new DefaultMacroDescriptor("Test macro")));

getComponentManager().unregisterComponent(Macro.class, "mytestmacro2");
}
@Test
public void testGetMacroIdsWithSyntaxSpecificMacros() throws Exception
{
final Macro mockMacro = registerMockComponent(Macro.class, "mytestmacro/xwiki/2.0");
getMockery().checking(new Expectations(){{
allowing(mockMacro).getDescriptor();
will(returnValue(new DefaultMacroDescriptor("Test macro")));
