@Test
 public void shouldCreateANewPatientAndStoreHisUUIDAsPatientUUID() throws Exception {
   String tempUUIDAssignedByDevice = "newUUID";
   formData.setPatientUuid(null);
   formData.setDiscriminator(FORM_DISCRIMINATOR_REGISTRATION);
   Patient patient = new Patient();
   patient.setUuid(tempUUIDAssignedByDevice);
   when(controller.createNewPatient("data")).thenReturn(patient);
   store.save("data", "xmlData", "complete");
   assertThat(formData.getXmlPayload(), is("xmlData"));
   assertThat(formData.getPatientUuid(), is(tempUUIDAssignedByDevice));
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_with_pager);
   Intent intent = getIntent();
   patient = (Patient) intent.getSerializableExtra(PatientSummaryActivity.PATIENT);
   initPager();
   initPagerIndicator();
   getSupportActionBar().setTitle(patient.getSummary());
 }