@Test
@SuppressWarnings("deprecation")
public void testLegacyNamedNoParameters()
{

    TrackInstantiation.reset();
    String name = new ObjectNameBuilder("com.example")
            .withProperty("a", "fooval")
            .withProperty("b", "with\"quote")
            .withProperty("c", "with,comma")
            .withProperty("d", "with\\backslash")
            .build();
    NoParameters noParameters = reportCollectionFactory.createReportCollection(NoParameters.class, name);
    TrackInstantiation.assertInstantiated();
    ArgumentCaptor<String> stringCaptor = ArgumentCaptor.forClass(String.class);
    ArgumentCaptor<TrackInstantiation> reportCaptor = ArgumentCaptor.forClass(TrackInstantiation.class);
    verify(reportExporter).export(reportCaptor.capture(), eq(false), stringCaptor.capture(), tagCaptor.capture());
    assertEquals(stringCaptor.getValue(), "Add");
    assertEquals(tagCaptor.getValue(), ImmutableMap.builder()
            .put("a", "fooval")
            .put("b", "with\"quote")
            .put("c", "with,comma")
            .put("d", "with\\backslash")
            .build());
    assertNotNull(reportCaptor.getValue());
    assertNotNull(noParameters.add());
}