/** Test of isReadable method, of class SimpleFileAccessControl. */
 @Test
 public void testIsReadable() {
   String token = "965e985d-c711-47b3-a467-62779505965e985d-c711-47b3-a467-62779505";
   SimpleDocument attachment = createFrenchSimpleAttachment();
   ShareableAttachment resource = new ShareableAttachment(token, attachment);
   SimpleFileAccessControl instance = new SimpleFileAccessControl();
   boolean expResult = true;
   boolean result = instance.isReadable(resource);
   assertThat(result, is(expResult));
 }
 @Test
 public void testIsNotReadable() {
   createFrenchSimpleAttachment();
   SimpleDocumentPK pk = new SimpleDocumentPK(null, instanceId);
   pk.setOldSilverpeasId(10);
   SimpleDocument attachment = new HistorisedDocument();
   attachment.setPK(pk);
   attachment.setForeignId("15");
   ShareableAttachment resource =
       new ShareableAttachment(
           "965e985d-c711-47b3-a467-62779505965e985d-c711-47b3-a467-62779505", attachment);
   SimpleFileAccessControl instance = new SimpleFileAccessControl();
   boolean expResult = false;
   boolean result = instance.isReadable(resource);
   assertThat(result, is(expResult));
 }