### Question:
InsituTime extends AbstractImplicitRule { @Override public void setContext(Context context) { super.setContext(context); historyShape = InsituHelper.getShape(context); }  @Override final Array apply(Array _, Item __); @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, 53); final Context context = new ContextBuilder().dimensionConfiguration(dimensionConfiguration).build(); final InsituTime insituTime = new InsituTime(); insituTime.setContext(context); assertNotNull(insituTime.historyShape); assertArrayEquals(new int[]{1, 53}, insituTime.historyShape); }