@SuppressWarnings("unchecked")
@Test
public void shouldRecordObj() throws Exception {

    objectRepository.saveObject(Arrays.asList("sandy", "ganesh", 12, 23.0),
            outputStream);
    verify(outputStream, new Times(14)).write((byte[]) any(), anyInt(),
            anyInt());
}