public static FedoraBinary mockBinary(final String pid,
final String dsId, final String content) {
final FedoraBinary mockBinary = mock(FedoraBinary.class);
when(mockBinary.getPath()).thenReturn("/" + pid + "/" + dsId + "/jcr:content");
when(mockBinary.getMimeType()).thenReturn("application/octet-stream");
<BUG>when(mockBinary.getCreatedDate()).thenReturn(new Date());

when(mockBinary.getLastModifiedDate()).thenReturn(new Date());
</BUG>
if (content != null) {

public static FedoraBinary mockBinary(final String pid,
final String dsId, final String content) {
final FedoraBinary mockBinary = mock(FedoraBinary.class);
when(mockBinary.getPath()).thenReturn("/" + pid + "/" + dsId + "/jcr:content");
when(mockBinary.getMimeType()).thenReturn("application/octet-stream");
when(mockBinary.getCreatedDate()).thenReturn(Instant.now());
when(mockBinary.getLastModifiedDate()).thenReturn(Instant.now());
if (content != null) {
