@Test
public void shouldProperlyMapPermissionIntoPermissionModel() throws Exception {

  Permission permission = Permission.builder()
      .permission("CAMERA")
      .rationaleTitle("Permission Request")
      .rationaleMessage("You should allow it")
      .deniedMessage("Allow it!")
      .build();
  PermissionModel permissionModel = permissionModelDataMapper.transform(permission);
  assertThat(permissionModel, notNullValue());
  assertThat(permissionModel, instanceOf(PermissionModel.class));
  assertThat(permissionModel.permission(), notNullValue());
  assertThat(permissionModel.permission(), is("CAMERA"));
  assertThat(permissionModel.rationaleTitle(), notNullValue());
  assertThat(permissionModel.rationaleTitle(), is("Permission Request"));
  assertThat(permissionModel.rationaleMessage(), notNullValue());
  assertThat(permissionModel.rationaleMessage(), is("You should allow it"));
  assertThat(permissionModel.deniedMessage(), notNullValue());
  assertThat(permissionModel.deniedMessage(), is("Allow it!"));
}