public void listall() {
CertificateSerialCurator csc = mock(CertificateSerialCurator.class);
CertificateSerialResource csr = new CertificateSerialResource(csc);
List<CertificateSerial> serials = new ArrayList<CertificateSerial>();
serials.add(mock(CertificateSerial.class));
when(csc.listAll()).thenReturn(serials);
assertEquals(serials, csr.getCertificateSerials());
}
@Test
public void getSerial() {