### Question:
InsituLatitude extends AbstractImplicitRule { @Override public void setContext(Context context) { super.setContext(context); historyShape = InsituHelper.getShape(context); }  @Override Array apply(Array sourceArray, Item sourceColumn); @Override void setContext(Context context);  }### Answer:
@Test public void testSetContext_historyShapeIsSetFromDimensionMap() { final Map<String, Integer> dimensionConfiguration = new HashMap<>(); dimensionConfiguration.put(Constants.DIMENSION_NAME_INSITU_NTIME, 65); final Context context = new ContextBuilder().dimensionConfiguration(dimensionConfiguration).build(); final InsituLatitude insituLatitude = new InsituLatitude(); insituLatitude.setContext(context); assertNotNull(insituLatitude.historyShape); assertArrayEquals(new int[]{1, 65}, insituLatitude.historyShape); }