### Question:
DMNClientDiagramServiceImpl extends AbstractKogitoClientDiagramService { Metadata buildMetadataInstance(final String fileName) { final String defSetId = BindableAdapterUtils.getDefinitionSetId(DMNDefinitionSet.class); final String shapeSetId = BindableAdapterUtils.getShapeSetId(DMNShapeSet.class); return new MetadataImpl.MetadataImplBuilder(defSetId, definitionManager) .setRoot(PathFactory.newPath(".", ROOT)) .setPath(PathFactory.newPath(".", ROOT + "/" + fileName)) .setShapeSetId(shapeSetId) .build(); } DMNClientDiagramServiceImpl(); @Inject  DMNClientDiagramServiceImpl(final FactoryManager factoryManager,
                                       final DefinitionManager definitionManager,
                                       final Promises promises,
                                       final DMNMarshallerService marshallerService); @Override void transform(final String fileName,
                          final String xml,
                          final ServiceCallback<Diagram> callback); @Override String generateDefaultId(); @Override void transform(final String xml,
                          final ServiceCallback<Diagram> callback); @Override Promise<String> transform(final KogitoDiagramResourceImpl resource);  }### Answer:
@Test public void testBuildMetadataInstance() { final String fileName = "file.dmn"; when(definitionManager.definitionSets()).thenReturn(mock(TypeDefinitionSetRegistry.class)); final Metadata metadata = service.buildMetadataInstance(fileName); assertEquals("default: assertEquals("default: }