@Test
public void returnNullIfKeyIsNotStoredInPreference(){

    SharedPreferences pref = mock(SharedPreferences.class);
    when(pref.getString(anyString(),anyString())).thenReturn(null);
    GoogleAsrKey key = GoogleAsrKey.loadKey(pref);
    assertNull(key);
}