verify(cc, atLeastOnce()).create(content);
}
@Test
public void deleteContent() {
Content content = mock(Content.class);
when(content.getId()).thenReturn("10");
when(cc.find(eq("10"))).thenReturn(content);
EnvironmentContent ec =
new EnvironmentContent(mock(Environment.class), content.getId(), true);
List<EnvironmentContent> envContents = listFrom(ec);
when(envContentCurator.lookupByContent(content.getId())).thenReturn(envContents);
cr.remove("10");
verify(cc, atLeastOnce()).delete(eq(content));
verify(envContentCurator, atLeastOnce()).delete(eq(ec));