### Question:
UserPushDeviceProfileManager { public String createRandomBytes(int byteNum) { byte[] secretBytes = new byte[byteNum]; secureRandom.nextBytes(secretBytes); return Base64.encode(secretBytes); } @Inject  UserPushDeviceProfileManager(final @Nonnull PushDevicesDao devicesDao,
                                        final @Nonnull @Named("amAuthPush") Debug debug,
                                        final @Nonnull SecureRandom secureRandom,
                                        final @Nonnull DeviceJsonUtils<PushDeviceSettings> jsonUtils); PushDeviceSettings createDeviceProfile(); String createRandomBytes(int byteNum); void saveDeviceProfile(@Nonnull String user, @Nonnull String realm,
                                  @Nonnull PushDeviceSettings deviceSettings); List<PushDeviceSettings> getDeviceProfiles(@Nonnull String user, @Nonnull String realm);  }### Answer:
@Test public void correctNumRandomBytesAreProducedAsBase64() { int num = 10; String byteArray = userPushDeviceProfileManager.createRandomBytes(num); assertThat(Base64.decode(byteArray)).hasSize(num); }