}
@Test
public void shouldUpdateCepModule() throws Exception {
//Given
CepModuleRepresentation updated = new CepModuleRepresentation();
when(restConnector.putStream(
eq(CEP_MODULES_COLLECTION_URL+"/"+ID),
eq(CepMediaType.CEP_MODULE),
any(InputStream.class),
eq(CepModuleRepresentation.class))
).thenReturn(updated);
//when
CepModuleRepresentation result = cepApi.update(ID, mock(InputStream.class));
// then
assertThat(result, sameInstance(updated));
}