@Test
public void testInvalidBaseAngleData() {

    DownloadTask task = mock(DownloadMapDataTask.class);
    Map<String, Collection> data = new HashMap<String, Collection>();
    deadReckoning.onDownloadFinished(task, true, data);
    assertTrue(0 == deadReckoning.baseAngle);
    deadReckoning.onDownloadFinished(task, false, data);
    assertTrue(0 == deadReckoning.baseAngle);
    List<Integer> list = new ArrayList<Integer>();
    data.put(OsmParserKeys.NORTH_ANGLE, list);
    deadReckoning.onDownloadFinished(task, true, data);
    assertTrue(0 == deadReckoning.baseAngle);
    list.add(null);
    data.put(OsmParserKeys.NORTH_ANGLE, list);
    deadReckoning.onDownloadFinished(task, true, data);
    assertTrue(0 == deadReckoning.baseAngle);
}