public void testBeaconLoadAndScan() throws IOException, S3ServiceException, InterruptedException {
final FAB<Beacon, byte[]> beaconFAB = new FAB<Beacon, byte[]>("/Volumes/Data/tmp/beacons", "/Volumes/Data/tmp/schemas", new Supplier<byte[]>() {
Random r = new SecureRandom();
@Override
public byte[] get() {
return Longs.toByteArray(r.nextLong());
}
}, Beacon.SCHEMA$, AvroFormat.BINARY, null);
Properties p = new Properties();
p.load(getClass().getResourceAsStream("creds.properties"));
ProviderCredentials pc = new AWSCredentials(p.getProperty("AWS_ACCESS_KEY_ID"), p.getProperty("AWS_SECRET_ACCESS_KEY"));