### Question:
DataTypeConstraintView implements DataTypeConstraint.View { JSONObject properties() { final JSONObject jsonObject = makeJsonObject(); jsonObject.put("container", new JSONString("body")); return jsonObject; } @Inject  DataTypeConstraintView(final HTMLAnchorElement constraintsAnchorContainer,
                                  final HTMLDivElement constraintsLabelContainer,
                                  final @Named("span") HTMLElement constraintsAnchorText,
                                  final @Named("span") HTMLElement constraintsLabelText,
                                  final @Named("span") HTMLElement constraintsTooltip,
                                  final TranslationService translationService); @Override void init(final DataTypeConstraint presenter); @PostConstruct void setup(); @EventHandler("constraints-anchor-container") void onConstraintsClick(final ClickEvent e); @Override void showAnchor(); @Override void hideAnchor(); @Override void setText(final String text); @Override void enable(); @Override void disable();  }### Answer:
@Test public void testProperties() { final JSONObject jsonObject = mock(JSONObject.class); doReturn(jsonObject).when(view).makeJsonObject(); view.properties(); verify(jsonObject).put(eq("container"), eq(new JSONString("body"))); }