@Test
public void should_decrement_an_asset() throws Exception {

    Widget widget = aWidget().id("my-widget").custom().build();
    Asset asset = anAsset().withComponentId("my-widget").withOrder(3).build();
    when(widgetRepository.get("my-widget")).thenReturn(widget);
    mockMvc.perform(
            put("/rest/widgets/my-widget/assets/UIID?decrement=true")
                    .contentType(MediaType.APPLICATION_JSON_VALUE)
                    .content(convertObjectToJsonBytes(asset)))
            .andExpect(status().isOk());
    verify(widgetAssetService).changeAssetOrderInComponent(widget, "UIID", DECREMENT);
}