  @Test
  public void testConvertFunctionblockWithDictionaryTypeWithPrimitiveParameters() {

    FunctionblockModel fbModel = FunctionblockModel
        .Builder(ModelId.fromPrettyFormat("org.eclipse.vorto:Sensor:1.0.0"))
        .statusProperty(ModelProperty
            .Builder("value", new DictionaryType(PrimitiveType.STRING, PrimitiveType.INT)).build())
        .build();

    ModelContentToEcoreConverter converter = new ModelContentToEcoreConverter();

    org.eclipse.vorto.core.api.model.functionblock.FunctionblockModel model =
        (org.eclipse.vorto.core.api.model.functionblock.FunctionblockModel) converter
            .convert(ModelContent.Builder(fbModel).build(), Optional.empty());
    assertEquals(1, model.getFunctionblock().getStatus().getProperties().size());
    assertTrue(model.getFunctionblock().getStatus().getProperties().get(0)
        .getType() instanceof DictionaryPropertyType);
    assertNotNull(((DictionaryPropertyType) model.getFunctionblock().getStatus().getProperties()
        .get(0).getType()).getKeyType() instanceof PrimitivePropertyType);
    assertNotNull(((DictionaryPropertyType) model.getFunctionblock().getStatus().getProperties()
        .get(0).getType()).getValueType() instanceof PrimitivePropertyType);

  }