@Test public void testCreateWithDataSingle() { ExtDirectStoreReadResult<Row> rows = (ExtDirectStoreReadResult<Row>) ControllerUtil.sendAndReceive( mockMvc, "remoteProviderStoreModifySingle", "create1", new TypeReference<ExtDirectStoreReadResult<Row>>() { /* nothing here */ }, new Row(10, "Ralph", true, "109.55")); assertThat(rows.getRecords()).hasSize(1); assertThat(rows.isSuccess()).isTrue(); Row row = rows.getRecords().iterator().next(); assertThat(row.getId()).isEqualTo(10); assertThat(row.getName()).isEqualTo("Ralph"); assertThat(row.getSalary()).isEqualTo(new BigDecimal("109.55")); }